remove unused variables
[rofl0r-hexedit0r.git] / Makefile
blob69bc8bf67364a0a62f5c33925682ae97ed871121
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
11 prefix = /usr/local/
12 includedir = $(prefix)/include
13 libdir = $(prefix)/lib
15 SRCS = $(sort $(wildcard *.c))
16 OBJS = $(SRCS:.c=.o)
17 LOBJS = $(OBJS:.o=.lo)
19 CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe
20 INC =
21 PIC = -fPIC -O0
22 AR = $(CROSS_COMPILE)ar
23 RANLIB = $(CROSS_COMPILE)ranlib
25 -include config.mak
27 all: hexedit
29 install:
30 install -D -m 755 hexedit $(bindir)
32 clean:
33 rm -f hexedit
34 rm -f $(OBJS)
36 hexedit: $(OBJS)
37 $(CC) $(LDFLAGS) $(OBJS) -o hexedit -lncurses
39 %.o: %.c
40 $(CC) $(CFLAGS) $(CFLAGS_MAIN) $(INC) -c -o $@ $<
42 .PHONY: all clean install