summaryrefslogtreecommitdiffstats
path: root/src/client/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Makefile')
-rw-r--r--src/client/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/client/Makefile b/src/client/Makefile
new file mode 100644
index 0000000..071462b
--- /dev/null
+++ b/src/client/Makefile
@@ -0,0 +1,18 @@
+CPP = g++
+CPPFLAGS = -Wall -g -lncurses
+SOURCES = client.cpp clui.cpp user.cpp
+OBJECTS = $(SOURCES:.cpp=.o)
+EXECUTABLE = client
+
+.PHONY: all clean
+
+all: $(EXECUTABLE)
+
+clean:
+ rm -rf $(OBJECTS) $(EXECUTABLE)
+
+$(EXECUTABLE): $(OBJECTS)
+ $(CPP) $(CPPFLAGS) -o $(EXECUTABLE) $(OBJECTS)
+
+$(OBJECTS):
+ $(CPP) -c $(CPPFLAGS) $(SOURCES) \ No newline at end of file