git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed client makefile for clean
[tpg/opendispense2.git]
/
src
/
client
/
Makefile
diff --git
a/src/client/Makefile
b/src/client/Makefile
index
490e4dc
..
e490549
100644
(file)
--- a/
src/client/Makefile
+++ b/
src/client/Makefile
@@
-1,6
+1,7
@@
CFLAGS := -Wall -Werror -g
CFLAGS := -Wall -Werror -g
-LDFLAGS := -g
+LDFLAGS := -g -lncurses
+# -lssl
BIN := ../../dispense
OBJ := main.o
BIN := ../../dispense
OBJ := main.o
@@
-12,7
+13,12
@@
DEPFILES := $(OBJ:%.o=%.d)
all: $(BIN)
clean:
all: $(BIN)
clean:
- $(RM) $(BIN) $(OBJ)
+ $(RM) $(BIN) $(OBJ) $(DEPFILES)
+
+$(BIN): $(OBJ)
+ $(CC) -o $(BIN) $(OBJ) $(LDFLAGS)
+# chown root $(BIN)
+# chmod u+s $(BIN)
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)
UCC
git Repository :: git.ucc.asn.au