Change compiler, add globals object file
Use g++ because of the sdk's headers Add includes Remove write-strings warning
This commit is contained in:
parent
dd6c31afc3
commit
5c3899e093
10
Makefile
10
Makefile
|
@ -1,9 +1,11 @@
|
||||||
|
|
||||||
CC=gcc
|
# Need to use g++ because the sdk headers use classes
|
||||||
CFLAGS=-Wall -Wextra -m32 -fPIC
|
CC=g++
|
||||||
|
INCLUDES=-Isrc/sdk/common -Isrc/sdk/public -Isrc/sdk/pm_shared -Isrc/sdk/engine
|
||||||
|
CFLAGS=-Wall -Wextra -Wno-write-strings -m32 -fPIC $(INCLUDES)
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
|
|
||||||
OBJS=obj/main.c.o
|
OBJS=obj/main.c.o obj/globals.c.o
|
||||||
BIN=libhlcheat.so
|
BIN=libhlcheat.so
|
||||||
|
|
||||||
.PHONY: clean all inject
|
.PHONY: clean all inject
|
||||||
|
@ -16,7 +18,7 @@ clean:
|
||||||
rm -f $(OBJS)
|
rm -f $(OBJS)
|
||||||
rm -f $(BIN)
|
rm -f $(BIN)
|
||||||
|
|
||||||
inject:
|
inject: $(BIN)
|
||||||
bash ./inject.sh
|
bash ./inject.sh
|
||||||
|
|
||||||
# -------------------------------------------
|
# -------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue