scc

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

Makefile (443B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 
      6 OBJS =\
      7 	debug.o\
      8 	die.o\
      9 	newitem.o\
     10 	xcalloc.o\
     11 	xmalloc.o\
     12 	xrealloc.o\
     13 	xstrdup.o\
     14 	alloc.o\
     15 	casecmp.o\
     16 	genhash.o\
     17 	fromepoch-$(DRIVER).o\
     18 	totime-$(DRIVER).o\
     19 	canonical-$(DRIVER).o\
     20 	getstat-$(DRIVER).o\
     21 	setstat-$(DRIVER).o\
     22 
     23 TARGET = $(LIBDIR)/scc/libscc.a
     24 
     25 all: $(TARGET)
     26 
     27 $(TARGET): $(OBJS)
     28 	$(AR) $(PROJ_ARFLAGS) $@ $?
     29 	$(RL) $(PROJ_RLFLAGS) $@
     30 
     31 include deps.mk