summaryrefslogtreecommitdiff
path: root/mkfiles/mkone-nt
blob: 40d14ef0208f8324d2a90ce3b2247d7d4fb34d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
libs=${LIBS:%=$ROOT/$OBJDIR/lib/lib%.a}
TARGPROG=$TARG.exe

all:V:	$O.out

install:V:	$BIN/$TARGPROG

installall:V:
	for objtype in $CPUS
	do
		mk $MKFLAGS install
	done

nuke:V:	nuke-std

clean:V: clean-std

$O.out:	$OFILES $libs
	$LD $LDFLAGS -out:$target $OFILES $libs $SYSLIBS

%.$O:	$HFILES		# don't combine with following %.$O rules

%.$O:	%.c
	$CC $CFLAGS $stem.c

%.$O:	%.s
	$AS $ASFLAGS $stem.s

y.tab.h y.tab.c:	$YFILES
	$YACC $YFLAGS $YFILES

clean-std:V:
	rm -f *.$O *.exe $O.out y.tmp.*
	rm -f y.tab.? y.debug y.output *.pdb *.pch

nuke-std:V:	clean-std
	rm -f y.tab.? y.debug y.output *.pdb *.pch

$BIN/%:	$O.out
	rm -f $BIN/$stem && cp $O.out $BIN/$stem