Makefile (424B)
1 .POSIX: 2 3 PROJECTDIR = ../../../.. 4 include $(PROJECTDIR)/scripts/rules.mk 5 6 OBJS =\ 7 types.o \ 8 decl.o \ 9 lex.o \ 10 error.o \ 11 symbol.o \ 12 main.o \ 13 expr.o \ 14 code.o \ 15 stmt.o \ 16 cpp.o \ 17 fold.o \ 18 init.o \ 19 builtin.o \ 20 arch.o\ 21 amd64-sysv.o\ 22 arm64-sysv.o \ 23 i386-sysv.o \ 24 z80-scc.o\ 25 26 TARGET = cc1 27 28 all: cc1 29 30 $(TARGET): $(LIBSCC) $(OBJS) 31 $(CC) $(PROJ_LDFLAGS) $(OBJS) -lscc $(PROJ_LDLIBS) -o $@ 32 cp $@ $(LIBEXEC)/scc/cc1