scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

Makefile (882B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 
      6 MORE_CFLAGS = -I$(INCDIR)/$(STD)
      7 
      8 OBJS = \
      9 	expr.o\
     10 	ins.o\
     11 	main.o\
     12 	parser.o\
     13 	symbol.o\
     14 
     15 TARGET =\
     16 	$(BINDIR)/scc-as\
     17 	$(LIBEXEC)/scc/as-amd64\
     18 	$(LIBEXEC)/scc/as-i286\
     19 	$(LIBEXEC)/scc/as-i386\
     20 	$(LIBEXEC)/scc/as-powerpc\
     21 	$(LIBEXEC)/scc/as-powerpc64\
     22 	$(LIBEXEC)/scc/as-z80 \
     23 
     24 MORE_LDLIBS =  -lscc -lmach
     25 
     26 all: $(TARGET)
     27 
     28 $(TARGET): $(LIBSCC) $(LIBMACH)
     29 
     30 $(BINDIR)/scc-as: as
     31 	cp as $@
     32 
     33 genhash.o: ../../libscc/genhash.c
     34 	$(HOSTCC) -c ../../libscc/genhash.c
     35 
     36 lexh.o: lexh.c
     37 	$(HOSTCC) -c lexh.c
     38 
     39 lexh: lexh.o genhash.o
     40 	$(HOSTCC) -o $@ lexh.o genhash.o
     41 
     42 clean:
     43 	rm -f target/*/*.o target/*/*tbl.c lexh
     44 	rm -f as
     45 
     46 include target/powerpc/powerpc64.mk
     47 include target/powerpc/powerpc.mk
     48 include target/x86/amd64.mk
     49 include target/x86/i386.mk
     50 include target/x86/i286.mk
     51 include target/x80/z80.mk
     52 include deps.mk