scc

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

Makefile (678B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 
      6 OBJS = types.o \
      7        decl.o \
      8        lex.o \
      9        error.o \
     10        symbol.o \
     11        main.o \
     12        expr.o \
     13        code.o \
     14        stmt.o \
     15        cpp.o \
     16        fold.o \
     17        init.o \
     18        builtin.o \
     19 
     20 TARGET   = $(LIBEXEC)/cc1-amd64-sysv \
     21            $(LIBEXEC)/cc1-arm64-sysv \
     22            $(LIBEXEC)/cc1-i386-sysv \
     23            $(LIBEXEC)/cc1-z80-scc \
     24 
     25 all: $(TARGET)
     26 
     27 $(TARGET): $(LIBDIR)/libscc.a
     28 
     29 dep: inc-dep
     30 
     31 clean:
     32 	rm -f target/*/*.o
     33 
     34 include target/amd64-sysv/arch.mk
     35 include target/arm64-sysv/arch.mk
     36 include target/i386-sysv/arch.mk
     37 include target/z80-scc/arch.mk
     38 include deps.mk