"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.1/libcanlock/Makefile.in" (28 Aug 2013, 1389 Bytes) of archive /linux/misc/tin-2.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 CFLAGS	= @CFLAGS@
    2 CPPFLAGS = @DEFS@ -Iinclude -I../include @CPPFLAGS@
    3 LDFLAGS	= @LDFLAGS@ -L. -lcanlock
    4 CC	= @CC@
    5 PRELIB	= @LIB_PREFIX@
    6 o	= .@OBJEXT@
    7 ARCHIVE = @AR@ @ARFLAGS@
    8 RANLIB  = @RANLIB@
    9 RM	= rm
   10 
   11 LIBOBJS = src/sha1.o src/hmac_sha1.o src/base64.o src/canlock.o
   12 LOCKLIB = $(PRELIB)canlock.a
   13 
   14 .c$o :
   15 	@SHOW_CC@
   16 	@ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
   17 
   18 all : hmactest canlocktest
   19 
   20 hmactest : t/hmactest.c $(LOCKLIB)
   21 	@SHOW_CC@
   22 	@ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS)
   23 
   24 canlocktest : t/canlocktest.c $(LOCKLIB)
   25 	@SHOW_CC@
   26 	@ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS)
   27 
   28 src/base64.o : src/base64.c include/base64.h
   29 src/canlock.o : src/canlock.c include/canlock.h
   30 src/hmac_sha1.o : src/hmac_sha1.c include/hmac_sha1.h
   31 src/sha1.o : src/sha1.c include/sha1.h
   32 
   33 lib : $(LOCKLIB)
   34 $(LOCKLIB) : $(LIBOBJS)
   35 	@-$(RM) -f $(LOCKLIB)
   36 	$(ARCHIVE) $(LOCKLIB) $(LIBOBJS)
   37 	$(RANLIB) $(LOCKLIB)
   38 
   39 clean :
   40 	@-$(RM) -f src/*.o t/*.o t/*.out *.gmon gmon.*
   41 
   42 distclean : clean
   43 	@-$(RM) -f *.a canlocktest hmactest *.exe *.h
   44 	@-$(RM) -rf canlocktest.dSYM hmactest.dSYM
   45 
   46 test : all
   47 	@echo "hmactest: "
   48 	@./hmactest > t/hmactest.out || echo hmm
   49 	@diff t/hmactest.shouldbe t/hmactest.out && echo " Pass." || echo " **FAIL**"
   50 	@echo "canlocktest: "
   51 	@./canlocktest > t/canlocktest.out
   52 	@diff t/canlocktest.shouldbe t/canlocktest.out && echo " Pass." || echo " **FAIL**"