scc

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

Makefile (364B)


      1 .POSIX:
      2 PROJECTDIR =../../..
      3 include $(PROJECTDIR)/scripts/rules.mk
      4 include ../rules.mk
      5 
      6 OBJS =\
      7 	_daysyear.$O\
      8 	_newyear.$O\
      9 	asctime.$O\
     10 	ctime.$O\
     11 	difftime.$O\
     12 	gmtime.$O\
     13 	localtime.$O\
     14 	mktime.$O\
     15 	strftime.$O\
     16 	tz.$O\
     17 
     18 all: $(OBJS)
     19 
     20 tz.c: timezone.lst
     21 	awk -f gentz.awk timezone.lst > $@
     22 
     23 tz.$O: tz.c
     24 	$(CC) $(PROJ_CFLAGS) -c -o $@ tz.c
     25 
     26 clean:
     27 	rm -f tz.c