diff options
author | Ian Moffett <ian@osmora.org> | 2025-02-21 18:53:40 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-02-21 18:53:40 -0500 |
commit | c56215b6d06984db22181bfde7d3ee4bac95871d (patch) | |
tree | 4b582e9811c8ad127656784a6a96d8a36441fa5a /Makefile |
Initial commit
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dc235bb --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CFILES_SERVER = $(shell find src/server -name "*.c") +CFILES_CLIENT = $(shell find src/client -name "*.c") +CFLAGS_OMOC = -pedantic -lostp -lssl -lcrypto -lpthread -Iinclude/ + +.PHONY: all +all: bin/server bin/client + +.PHONY: bin/client +bin/server: + mkdir -p $(@D) + $(CC) $(CFILES_SERVER) $(CFLAGS_OMOC) -o $@ + +.PHONY: bin/client +bin/client: + mkdir -p $(@D) + $(CC) $(CFILES_CLIENT) $(CFLAGS_OMOC) -o $@ |