diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
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 |
