From 2941ac6b8ecc1fd96b886219795f5d7e55bb85d8 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 29 May 2023 23:32:41 +0100 Subject: Initial import --- src/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/Makefile (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..94b83eb --- /dev/null +++ b/src/Makefile @@ -0,0 +1,25 @@ +BIN := ../game.exe +CC := i586-pc-msdosdjgpp-gcc +CFLAGS := -I. -c -Wall -pedantic -O2 -march=i386 +LDFLAGS := -s + +SRCS := $(wildcard *.c) +OBJS := $(SRCS:.c=.o) + +all: $(BIN) + +$(BIN): $(OBJS) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ + +.c.o: + $(CC) $(CFLAGS) $< -o $@ + +clean: + rm -f $(BIN) *.o Makefile.deps + +Makefile.deps: $(SRCS) + $(CC) $(CFLAGS) -MM *.[ch] > Makefile.deps + +.PHONY: all clean + +include Makefile.deps -- cgit v1.2.3