summaryrefslogtreecommitdiff
path: root/utils/Makefile
blob: f65f1e79008cb44b4ce3382dbcadc5ba4813a932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This Makefile will work only with GNU make.

CFLAGS ?= -O2 -fno-inline -g
CFLAGS += -Wall -Wstrict-prototypes
PROGRAMS = iscsi-iname

all: $(PROGRAMS)

iscsi-iname: md5.o iscsi-iname.o
	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(DBM_LIB) -o $@

clean:
	rm -f *.o $(PROGRAMS) .depend

depend:
	gcc $(CFLAGS) -M `ls *.c` > .depend

-include .depend