Use common regex functions in client
[tpg/opendispense2.git] / src / client / Makefile
index 41c23cb..b70551e 100644 (file)
@@ -8,6 +8,7 @@ LDFLAGS := -g -lncurses
 
 BIN := ../../dispense
 OBJ := main.o protocol.o menu.o
+OBJ += doregex.o
 
 DEPFILES := $(OBJ:%.o=%.d)
 
@@ -31,4 +32,8 @@ $(BIN): $(OBJ)
        $(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)

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