scc

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

Makefile (770B)


      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 	as-amd64\
     17 	as-i286\
     18 	as-i386\
     19 	as-powerpc\
     20 	as-powerpc64\
     21 	as-z80 \
     22 
     23 MORE_LDLIBS =  -lscc -lmach
     24 
     25 all: $(TARGET)
     26 
     27 $(TARGET): $(LIBSCC) $(LIBMACH)
     28 
     29 scc-as: as
     30 	cp as $(BINDIR)
     31 
     32 genhash.o: ../../libscc/genhash.c
     33 	$(HOSTCC) -c ../../libscc/genhash.c
     34 
     35 lexh.o: lexh.c
     36 	$(HOSTCC) -c lexh.c
     37 
     38 lexh: lexh.o genhash.o
     39 	$(HOSTCC) -o $@ lexh.o genhash.o
     40 
     41 clean:
     42 	rm -f target/*/*.o target/*/*tbl.c lexh
     43 	rm -f as
     44 
     45 include target/powerpc/powerpc64.mk
     46 include target/powerpc/powerpc.mk
     47 include target/x86/amd64.mk
     48 include target/x86/i386.mk
     49 include target/x86/i286.mk
     50 include target/x80/z80.mk
     51 include deps.mk