scc

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

Makefile (696B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 
      6 OBJS_286 =\
      7 	i286tbl.o\
      8 	arch_i286.o\
      9 	ins.o\
     10 
     11 OBJS_386 =\
     12 	i386tbl.o\
     13 	arch_i386.o\
     14 	ins.o\
     15 
     16 OBJS_AMD64 =\
     17 	amd64tbl.o\
     18 	arch_amd64.o\
     19 	ins.o\
     20 
     21 all: i286.o i386.o amd64.o
     22 
     23 i286.o: $(OBJS_286)
     24 	$(LD) -r -o $@ $(OBJS_286)
     25 
     26 i386.o: $(OBJS_386)
     27 	$(LD) -r -o $@ $(OBJS_386)
     28 
     29 amd64.o: $(OBJS_AMD64)
     30 	$(LD) -r -o $@ $(OBJS_AMD64)
     31 
     32 i286tbl.o: ops.dat opers.dat
     33 	../mktbl -c i286
     34 	$(CC) $(PROJ_CFLAGS) -c i286tbl.c
     35 
     36 i386tbl.o: ops.dat opers.dat
     37 	../mktbl -c i386
     38 	$(CC) $(PROJ_CFLAGS) -c i386tbl.c
     39 
     40 amd64tbl.o: ops.dat opers.dat
     41 	../mktbl -c amd64
     42 	$(CC) $(PROJ_CFLAGS) -c amd64tbl.c
     43 
     44 clean:
     45 	rm -f amd64tbl.c i386tbl.c i286tbl.c