diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2c5450d --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,22 @@ | |||
1 | INCLUDE=-Isrc/ -Isrc/KINDLE -I. | ||
2 | |||
3 | CFLAGS=$(INCLUDE) -D_GNU_SOURCE -DHAVE_CONFIG_H -DDISABLE_DOUBLEBUFFER | ||
4 | |||
5 | C_FILES=$(wildcard src/*.c) $(wildcard src/KINDLE/*.c) | ||
6 | OBJ_FILES=$(patsubst %.c,%.o,$(C_FILES)) | ||
7 | |||
8 | all: prboom | ||
9 | |||
10 | src/%.o: src/%.c | ||
11 | $(CC) -c $(CFLAGS) $< -o $@ | ||
12 | |||
13 | prboom: $(OBJ_FILES) Makefile | ||
14 | $(CC) -static $(CFLAGS) -o prboom $(OBJ_FILES) | ||
15 | |||
16 | extension: prboom | ||
17 | mv $< extensions/prboom/$< | ||
18 | zip -r PrBoom_KUAL.zip extensions | ||
19 | |||
20 | clean: | ||
21 | rm -rf $(OBJ_FILES) | ||
22 | rm -f PrBoom_KUAL.zip \ No newline at end of file | ||