scc

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

Makefile (435B)


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