Ticket #35855: patch-Makefile.diff

File patch-Makefile.diff, 796 bytes (added by cawka (Alex Afanasyev), 12 years ago)

Makefile patch

  • Makefile

    diff --git Makefile Makefile
    index bf720d4..e8a9b86 100644
     
    1 CC = cc
    2 CFLAGS = -g -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes
    3 LIBS = -lccn -lcrypto
     1EXTRA_CFLAGS = -g -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes
     2EXTRA_LIBS = -lccn -lcrypto
    43
    54PROGRAMS = ccnping ccnpingserver
    65
    76all: $(PROGRAMS)
    87
    98ccnping: ccnping.o
    10         $(CC) $(CFLAGS) -o $@ ccnping.o $(LIBS)
     9        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ ccnping.o $(LIBS) $(EXTRA_LIBS)
    1110
    1211ccnpingserver: ccnpingserver.o
    13         $(CC) $(CFLAGS) -o $@ ccnpingserver.o $(LIBS)
     12        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ ccnpingserver.o $(LIBS) $(EXTRA_LIBS)
    1413
    1514clean:
    1615        rm -f *.o
    1716        rm -f $(PROGRAMS)
    1817
    1918.c.o:
    20         $(CC) $(CFLAGS) -c $<
     19        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $<
    2120
    2221.PHONY: all clean