scc

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

Makefile (457B)


      1 .POSIX:
      2 
      3 LIBDIR    = ../lib/scc
      4 include ../config.mk
      5 include $(LIBDIR)/libdep.mk
      6 
      7 OBJ       = main.o $(DRIVER)/stat.c
      8 MOREFLAGS = -I$(DRIVER)
      9 
     10 all: ar-$(DRIVER)
     11 
     12 ar-$(DRIVER): $(OBJ) $(LIBDIR)/libscc.a
     13 	$(CC) $(SCC_LDFLAGS) $(OBJ) -lscc -o $@
     14 
     15 main.o: ../inc/scc.h ../inc/ar.h
     16 
     17 $(DRIVER)/stat.o: $(DRIVER)/stat.h
     18 
     19 $(LIBDIR)/libscc.a: $(LIB-OBJ)
     20 	cd $(LIBDIR) && $(MAKE)
     21 
     22 main.o: $(DRIVER)/stat.h
     23 
     24 dep:
     25 clean:
     26 	rm -f ar-* *.o $(DRIVER)/*.o
     27 
     28 distclean: clean