diff options
Diffstat (limited to 'src/server/Makefile')
-rw-r--r-- | src/server/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/server/Makefile b/src/server/Makefile new file mode 100644 index 0000000..be312d7 --- /dev/null +++ b/src/server/Makefile @@ -0,0 +1,18 @@ +CPP = g++ +CPPFLAGS = -Wall -g +SOURCES = server.cpp sockets.cpp chat.cpp rooms.cpp +OBJECTS = $(SOURCES:.cpp=.o) +EXECUTABLE = server + +.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 |