ncc: print a short help message with -h
[neatcc.git] / Makefile
blobb42a4810243e8056da403c0f5fa34f405dd4a58c
1 # output architecture: x64, x86, arm
2 OUT = x64
4 CC = cc
5 CFLAGS = -Wall -O2 -DNEATCC_`echo $(OUT) | tr xarm XARM`
6 LDFLAGS =
8 OBJS = ncc.o tok.o out.o cpp.o gen.o int.o reg.o mem.o $(OUT).o
10 all: ncc
11 %.o: %.c ncc.h
12 $(CC) -c $(CFLAGS) $<
13 ncc: $(OBJS)
14 $(CC) -o $@ $(OBJS) $(LDFLAGS)
15 clean:
16 rm -f *.o ncc