diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-15 19:38:05 +0300 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-15 19:38:05 +0300 |
| commit | 0be46c952901aaafe76e1fb5a8faecb38323d549 (patch) | |
| tree | 9ec9e7a2c99bd5cd81e17f1578a7be725558f88e /Makefile | |
| parent | Initial commit (diff) | |
| download | linux-game-trainer-0be46c952901aaafe76e1fb5a8faecb38323d549.tar.gz linux-game-trainer-0be46c952901aaafe76e1fb5a8faecb38323d549.zip | |
Attaching & Detaching from process
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..844cc7b --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | CC = gcc | ||
| 2 | CFLAGS = -Wall -g | ||
| 3 | OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c)) | ||
| 4 | OUT = hack.out | ||
| 5 | |||
| 6 | $(OUT): $(OBJS) | ||
| 7 | $(CC) $(CFLAGS) -o $@ $(OBJS) | ||
| 8 | |||
| 9 | %.o: %.c | ||
| 10 | $(CC) $(CFLAGS) -c $? -o $@ | ||
| 11 | |||
| 12 | clean: | ||
| 13 | rm -f src/*.o $(OUT) | ||
