From 3af50b956b8887b64c3c29b30a0008be866b24c4 Mon Sep 17 00:00:00 2001 From: the lemons Date: Sun, 5 Feb 2023 19:06:16 -0600 Subject: initial commit --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..50a35f4 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +SDL_HEADERS=/usr/include/SDL2 + +CFLAGS=-g -Wall -I$(SDL_HEADERS) +LFLAGS=-lSDL2 + +core: core.o procfs.o memview.o + $(CC) -o $@ $^ $(LFLAGS) + +core.c: procfs.h memview.h +memview.c: procfs.h memview.h +procfs.c: procfs.h + +.SUFFIXES: .c .o +.c.o: + $(CC) $(CFLAGS) -c -o $@ $< + +clean: + rm -f *.o core -- cgit v1.2.3