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
Use common regex functions in client
[tpg/opendispense2.git]
/
src
/
client
/
Makefile
diff --git
a/src/client/Makefile
b/src/client/Makefile
index
8c1cda4
..
b70551e
100644
(file)
--- a/
src/client/Makefile
+++ b/
src/client/Makefile
@@
-1,10
+1,14
@@
+# OpenDispense 2
+#
-CFLAGS := -Wall -Werror -g
+INSTALLDIR := /usr/local/opendispense2
+CFLAGS := -Wall -Werror -g -std=gnu99
LDFLAGS := -g -lncurses
# -lssl
BIN := ../../dispense
OBJ := main.o protocol.o menu.o
LDFLAGS := -g -lncurses
# -lssl
BIN := ../../dispense
OBJ := main.o protocol.o menu.o
+OBJ += doregex.o
DEPFILES := $(OBJ:%.o=%.d)
DEPFILES := $(OBJ:%.o=%.d)
@@
-15,6
+19,10
@@
all: $(BIN)
clean:
$(RM) $(BIN) $(OBJ) $(DEPFILES)
clean:
$(RM) $(BIN) $(OBJ) $(DEPFILES)
+install: $(BIN)
+ mkdir -p $(INSTALLDIR)
+ cp $(BIN) $(INSTALLDIR)
+
$(BIN): $(OBJ)
$(CC) -o $(BIN) $(OBJ) $(LDFLAGS)
# chown root $(BIN)
$(BIN): $(OBJ)
$(CC) -o $(BIN) $(OBJ) $(LDFLAGS)
# chown root $(BIN)
@@
-24,4
+32,8
@@
$(BIN): $(OBJ)
$(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)
$(CC) -M -MT $@ -o $*.d $< $(CPPFLAGS)
$(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)
$(CC) -M -MT $@ -o $*.d $< $(CPPFLAGS)
+%.o: ../common/%.c
+ $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)
+ $(CC) -M -MT $@ -o $*.d $< $(CPPFLAGS)
+
-include $(DEPFILES)
-include $(DEPFILES)
UCC
git Repository :: git.ucc.asn.au