2 # Makefile for proxychains (requires GNU make), stolen from musl
4 # Use config.mak to override any of the following variables.
5 # Do not make changes here.
8 exec_prefix = /usr
/local
9 bindir = $(exec_prefix)/bin
12 includedir = $(prefix)/include
13 libdir = $(prefix)/lib
15 SRCS
= $(sort $(wildcard *.c
))
17 LOBJS
= $(OBJS
:.o
=.lo
)
19 CFLAGS
+= -Wall
-O0
-g
-std
=c99
-D_GNU_SOURCE
-pipe
22 AR
= $(CROSS_COMPILE
)ar
23 RANLIB
= $(CROSS_COMPILE
)ranlib
30 install -D
-m
755 hexedit
$(bindir)
37 $(CC
) $(LDFLAGS
) $(OBJS
) -o hexedit
-lncurses
40 $(CC
) $(CFLAGS
) $(CFLAGS_MAIN
) $(INC
) -c
-o
$@
$<
42 .PHONY
: all clean install