diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-01-18 20:09:17 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-01-18 20:09:17 +0100 |
commit | c4ae8d3ac1288d36fe0e67fb23b7f80a9b730cb3 (patch) | |
tree | 369ab54761b1b9d2feb8e9bdcee0032a8b89d064 /Makefile |
Initial
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b997c37 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC = gcc +CFLAGS = -Wall -Wextra -Wwrite-strings -Wconversion -Wno-sign-conversion -std=c11 -g -fwrapv +LDFLAGS = + +BIN = roomserver + +obj_files = $(patsubst %.c,%.o,$(wildcard *.c)) + +.PHONY: all clean remake + +all: $(BIN) + +clean: + rm -rf $(BIN) *.o *.dSYM + +remake: clean + make all + +$(BIN): $(obj_files) + $(CC) -o $@ $^ $(LDFLAGS) + +%.o: %.c *.h + $(CC) $(CFLAGS) -c -o $@ $< |