14 CFLAGS
= -Wall
-Werror
-Wno-macro-redefined
-Wfatal-errors
-O2
$(ARCH
)
17 #CFLAGS = -Wall -Werror -Wfatal-errors -O2 $(ARCH)
20 #CFLAGS = -Wall -Werror -Wfatal-errors -O2 $(ARCH)
26 $(CC
) -c
$(CFLAGS
) $< -o
$*.o
28 # $^ "internal macro" gives a space separated list of command prerequisites
29 # however this feature doesn't seem to be required in POSIX
30 # http://pubs.opengroup.org/onlinepubs/009695399/utilities/make.html
32 ncc
: ncc.o tok.o out.o
cpp.o gen.o reg.o mem.o
$(GEN
)
33 $(CC
) ncc.o tok.o out.o
cpp.o gen.o reg.o mem.o
$(GEN
) $(LDFLAGS
) -o
$@
35 $(CC
) npp.o
cpp.o
$(LDFLAGS
) -o
$@
41 rm -f arch
/*.o
*.o ncc npp