summaryrefslogtreecommitdiff
path: root/h1z1/Makefile
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-03-25 20:48:19 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-03-25 20:48:19 +0100
commit1647f4b4f9ebef8b938222b1f48d9a15cc262e97 (patch)
tree5a62fbb1eae6be5dd47347cc1fdd1630c966f646 /h1z1/Makefile
parent3c098b80155a4b61134dc3b3de5bdbc08855fc2f (diff)
clean-up the mess
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'h1z1/Makefile')
-rw-r--r--h1z1/Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/h1z1/Makefile b/h1z1/Makefile
index eddc463..b547102 100644
--- a/h1z1/Makefile
+++ b/h1z1/Makefile
@@ -7,11 +7,11 @@ TARGETS := h1z1
H1Z1_SRC := main.c
ifneq ($(strip $(X64)),)
-CFLAGS+=-I../libghack/CSFML-2.1-windows-64bits/CSFML-2.1/include -I../libghack/include
-LDFLAGS+=-L../libghack/CSFML-2.1-windows-64bits/CSFML-2.1/lib/gcc -L../libghack/CSFML-2.1-windows-64bits/CSFML-2.1/bin -L../libghack
+CFLAGS+=-Ilibghack/CSFML-2.1-windows-64bits/CSFML-2.1/include -Ilibghack/include
+LDFLAGS+=-Llibghack/CSFML-2.1-windows-64bits/CSFML-2.1/lib/gcc -Llibghack/CSFML-2.1-windows-64bits/CSFML-2.1/bin -Llibghack
else
-CFLAGS+=-I../libghack/CSFML-2.1-windows-32bits/CSFML-2.1/include -I../libghack/include
-LDFLAGS+=-L../libghack/CSFML-2.1-windows-32bits/CSFML-2.1/lib/gcc -L../libghack/CSFML-2.1-windows-32bits/CSFML-2.1/bin -L../libghack
+CFLAGS+=-Ilibghack/CSFML-2.1-windows-32bits/CSFML-2.1/include -Ilibghack/include
+LDFLAGS+=-Llibghack/CSFML-2.1-windows-32bits/CSFML-2.1/lib/gcc -Llibghack/CSFML-2.1-windows-32bits/CSFML-2.1/bin -Llibghack
endif
@@ -24,10 +24,17 @@ all: $(TARGETS)
@echo 'Finished building: $<'
@echo ' '
+libghack/libghack.dll:
+ make -C libghack
-h1z1: main.o
+h1z1: libghack/libghack.dll main.o
@echo 'Building target: $@'
@echo 'Invoking: GCC C Linker'
- $(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lcsfml-window -lcsfml-system -lcsfml-graphics ../libghack/libghack.dll -lpsapi
+ $(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lcsfml-window -lcsfml-system -lcsfml-graphics libghack/libghack.dll -lpsapi
@echo 'Finished building target: $@'
@echo ' '
+
+
+clean:
+ $(MAKE) -C libghack clean
+ rm -f h1z1.exe *.o *.d