scc

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

Makefile (474B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 
      6 OBJS32 =\
      7 	ppctbl.o\
      8 	arch_ppc.o\
      9 	ins.o\
     10 
     11 OBJS64 =\
     12 	ppc64tbl.o\
     13 	arch_ppc64.o\
     14 	ins.o\
     15 
     16 all: ppc.o ppc64.o
     17 
     18 ppc.o: $(OBJS32)
     19 	$(LD) -r -o $@ $(OBJS32)
     20 
     21 ppc64.o: $(OBJS64)
     22 	$(LD) -r -o $@ $(OBJS64)
     23 
     24 ppctbl.o: ops.dat opers.dat
     25 	../mktbl -c ppc
     26 	$(CC) $(PROJ_CFLAGS) -c ppctbl.c
     27 
     28 ppc64tbl.o: ops.dat opers.dat
     29 	../mktbl -c ppc64
     30 	$(CC) $(PROJ_CFLAGS) -c ppc64tbl.c
     31 
     32 clean:
     33 	rm -f ppc64tbl.c ppctbl.c