scc

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

Makefile (338B)


      1 .POSIX:
      2 
      3 PROJECTDIR =../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 
      6 OBJS =\
      7 	elfarchs.o\
      8 	elfdel.o\
      9 	elfgetsec.o\
     10 	elfgetsym.o\
     11 	elfloadmap.o\
     12 	elfnew.o\
     13 	elfprobe.o\
     14 	elfread.o\
     15 	elftype.o\
     16 
     17 all: $(OBJS)
     18 
     19 dep:
     20 	@(printf 'ELFOBJS=\\';\
     21 	echo;\
     22 	echo $(OBJS) |\
     23 	sed -E 's@ *([^ ]*)@\telf/\1\\\n@g') > deps.mk
     24 
     25 distclean:
     26 	rm -f deps.mk