~crass/proxychains-ng/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: rofl0r
  • Date: 2014-07-22 12:10:11 UTC
  • Revision ID: git-v1:cd4aee19977bb204fc550b54788f4094ae5e61ea
print proxychains version on DLL init

framework to print version stolen from musl

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
SRCS = $(sort $(wildcard src/*.c))
17
17
OBJS = $(SRCS:.c=.o)
18
 
LOBJS = src/nameinfo.o \
 
18
LOBJS = src/nameinfo.o src/version.o \
19
19
        src/core.o src/common.o src/libproxychains.o src/shm.o \
20
20
        src/allocator_thread.o src/ip_type.o src/stringdump.o \
21
21
        src/hostentdb.o src/hash.o src/debug.o
22
22
 
 
23
GENH = src/version.h
 
24
 
23
25
CFLAGS  += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe
24
26
NO_AS_NEEDED = -Wl,--no-as-needed
25
27
LIBDL   = -ldl
61
63
        rm -f $(ALL_LIBS)
62
64
        rm -f $(ALL_TOOLS)
63
65
        rm -f $(OBJS)
 
66
        rm -f $(GENH)
 
67
 
 
68
src/version.h: $(wildcard VERSION .git)
 
69
        printf '#define VERSION "%s"\n' "$$(sh tools/version.sh)" > $@
 
70
 
 
71
src/version.o: src/version.h
64
72
 
65
73
%.o: %.c
66
74
        $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_MAIN) $(INC) $(PIC) -c -o $@ $<