From 9e5372a6db4334d9ff7da1a0f949cdb359ab6de1 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 24 Jul 2026 18:40:14 -0300 Subject: CONFIGURE YAYY BETTER BUILD METHODS lslsls! ANYTHING BUT WRITING ACTUAL CODElslslslslslslslslslslslslslslsls --- Makefile.in | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile.in (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..b82ee17 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,27 @@ +CC = @CC@ +CFLAGS = -Wall -Wextra -O2 -pipe +LDLIBS = @CURSES_LIB@ +TARGET = petratc +CONF = configure configure~ config.log config.status Makefile autom4te.cache/ +SRC = petratc.c rat.c $(wildcard games/*.c) +OBJ = $(SRC:%.c=obj/%.o) +PREFIX = /usr/local + +$(TARGET): $(OBJ) + $(CC) $(CFLAGS) -o $(TARGET) $(OBJ) $(LDLIBS) + +install: $(TARGET) + install -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET) + +obj/%.o: %.c + @mkdir -p $(@D) + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -f $(TARGET) $(OBJ) + +bigclean: + rm -rf $(TARGET) $(OBJ) $(CONF) -- cgit v1.3-2-g0d8e