scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

Makefile (653B)


      1 .POSIX:
      2 
      3 # Makefile is only used as a template for makefile.
      4 # If you modify Makefile remember to run make dep
      5 
      6 LIBDIR    = ../lib/scc
      7 include ../config.mk
      8 include $(LIBDIR)/libdep.mk
      9 
     10 MOREFLAGS = -I../inc/$(STD) $(CC1_CFLAGS)
     11 
     12 OBJ = types.o decl.o lex.o error.o symbol.o main.o expr.o \
     13       code.o stmt.o cpp.o fold.o init.o builtin.o
     14 
     15 HDR = cc1.h ../inc/scc.h ../inc/$(STD)/cstd.h ../inc/sysincludes.h
     16 
     17 all:
     18 	mkdir -p ../rootdir/libexec/scc/
     19 	cp cc1-* ../rootdir/libexec/scc/
     20 
     21 $(LIBDIR)/libscc.a: $(LIB-OBJ)
     22 	cd $(LIBDIR) && $(MAKE)
     23 
     24 dep:
     25 	./gendep.sh $(TARGETS)
     26 
     27 clean:
     28 	rm -f *.o
     29 	rm -f target/*/*.o
     30 	rm -f cc1-*
     31 
     32 distclean: clean
     33 	rm -f makefile