Restructured code into src/<module>
[tpg/opendispense2.git] / src / cokebank / Makefile
diff --git a/src/cokebank/Makefile b/src/cokebank/Makefile
new file mode 100644 (file)
index 0000000..8e6ea60
--- /dev/null
@@ -0,0 +1,20 @@
+
+BIN := ../../cokebank.so
+OBJ := main.o
+
+CPPFLAGS := 
+CFLAGS := -Wall -Werror -g -fPIC
+LDFLAGS := -shared -Wl,-soname,cokebank.so
+
+.PHONY: all clean
+
+all:   $(BIN)
+
+clean:
+       $(RM) $(BIN) $(OBJ)
+
+$(BIN):        $(OBJ)
+       $(CC) $(LDFLAGS) -o $(BIN) $(OBJ)
+
+%.o: %.c
+       $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)

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