Makefile - scc - simple c99 compiler (HTM) git clone git://git.simple-cc.org/scc (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- Makefile (1375B) --- 1 .POSIX: 2 3 DIRS =\ 4 qbe\ 5 ld\ 6 as\ 7 cc\ 8 make\ 9 10 PROJECTDIR = ../.. 11 include $(PROJECTDIR)/scripts/rules.mk 12 13 TARGET =\ 14 $(BINDIR)/scc-nm\ 15 $(BINDIR)/scc-ar\ 16 $(BINDIR)/scc-strip\ 17 $(BINDIR)/scc-size\ 18 $(BINDIR)/scc-ranlib\ 19 $(BINDIR)/scc-objdump\ 20 $(BINDIR)/scc-objcopy\ 21 $(BINDIR)/scc-addr2line\ 22 $(LIBEXEC)/scc/qbe\ 23 24 all: $(TARGET) $(DIRS) 25 26 qbe/.git: 27 git submodule init qbe 28 git submodule update qbe 29 30 qbe: qbe/.git 31 32 qbe/qbe: qbe 33 34 $(LIBEXEC)/scc/qbe: qbe/qbe 35 cp qbe/qbe $@ 36 37 $(BINDIR)/scc-nm: nm.o $(LIBMACH) $(LIBSCC) 38 $(CC) $(PROJ_LDFLAGS) nm.o -lmach -lscc $(PROJ_LDLIBS) -o $@ 39 40 $(BINDIR)/scc-strip: strip.o $(LIBMACH) $(LIBSCC) 41 $(CC) $(PROJ_LDFLAGS) strip.o -lmach -lscc $(PROJ_LDLIBS) -o $@ 42 43 $(BINDIR)/scc-size: size.o $(LIBMACH) $(LIBSCC) 44 $(CC) $(PROJ_LDFLAGS) size.o -lmach -lscc $(PROJ_LDLIBS) -o $@ 45 46 $(BINDIR)/scc-ranlib: ranlib.o $(LIBMACH) $(LIBSCC) 47 $(CC) $(PROJ_LDFLAGS) ranlib.o -lmach -lscc $(PROJ_LDLIBS) -o $@ 48 49 $(BINDIR)/scc-objdump: objdump.o $(LIBMACH) 50 $(CC) $(PROJ_LDFLAGS) objdump.o -lmach $(PROJ_LDLIBS) -o $@ 51 52 $(BINDIR)/scc-objcopy: objcopy.o $(LIBMACH) 53 $(CC) $(PROJ_LDFLAGS) objcopy.o -lmach $(PROJ_LDLIBS) -o $@ 54 55 $(BINDIR)/scc-addr2line: addr2line.o $(LIBMACH) $(LIBSCC) 56 $(CC) $(PROJ_LDFLAGS) addr2line.o -lmach -lscc $(PROJ_LDLIBS) -o $@ 57 58 $(BINDIR)/scc-ar: ar.o $(LIBSCC) 59 $(CC) $(PROJ_LDFLAGS) ar.o $(PROJ_LDLIBS) -lscc -o $@ 60 61 include deps.mk