Fixes fixes fixes, init.d script
[tpg/opendispense2.git] / src / client / Makefile
1
2 CFLAGS := -Wall -Werror -g
3 LDFLAGS := -g -lncurses -lssl
4
5 BIN := ../../dispense
6 OBJ := main.o
7
8 DEPFILES := $(OBJ:%.o=%.d)
9
10 .PHONY: all clean
11
12 all: $(BIN)
13
14 clean:
15         $(RM) $(BIN) $(OBJ)
16
17 $(BIN): $(OBJ)
18         $(CC) -o $(BIN) $(OBJ) $(LDFLAGS)
19         chown root $(BIN)
20         chmod u+s $(BIN)
21
22 %.o: %.c
23         $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)
24         $(CC) -M -MT $@ -o $*.d $< $(CPPFLAGS)
25
26 -include $(DEPFILES)

UCC git Repository :: git.ucc.asn.au