scc

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

Makefile (344B)


      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 
     18 TARGET = $(LIBDIR)/scc/libscc.a
     19 
     20 all: $(TARGET)
     21 
     22 $(TARGET): $(OBJS)
     23 	$(AR) $(PROJ_ARFLAGS) $@ $?
     24 	$(RL) $(PROJ_RLFLAGS) $@
     25 
     26 dep: inc-dep
     27 
     28 include deps.mk