forked from yscjr/SPPRTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
GCC = gcc
GXX = g++
INCLUDE_PATH = "./3rdparty/OSW/OpenSteamworks"
CFLAGS = -Wall -Wextra -Wshadow -m32 -O2 -pipe -fno-ident -fno-exceptions -I$(INCLUDE_PATH)
CFLAGS += -DSTEAMWORKS_CLIENT_INTERFACES -DNO_CSTEAMID_STL -DSCRYPT_SALSA -DSCRYPT_SHA256 -DSCRYPT_TEST
CFLAGS += -Wformat-security -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wunreachable-code
CPPFLAGS = $(CFLAGS) -nostdinc++ -std=c++11
LDFLAGS = -s -static
SOURCES_SPPRT = spprt.cpp \
protoreader.cpp \
3rdparty\OSW\OpenSteamAPI\src\Interface_OSW.cpp
SOURCES_SCRYPT = 3rdparty\scrypt-jane\scrypt-jane.c
OBJECTS_SPPRT = $(SOURCES_SPPRT:.cpp=.o)
#OBJECTS_SCRYPT = $(SOURCES_SCRYPT:.c=.o)
TARGET_SPPRT = spprt.exe
.PHONY: all clean
.SUFFIXES: .cpp .c .o
all: $(TARGET_SPPRT)
$(TARGET_SPPRT): $(OBJECTS_SPPRT) $(OBJECTS_SCRYPT)
$(GXX) $(OBJECTS_SPPRT) $(OBJECTS_SCRYPT) $(CPPFLAGS) $(LDFLAGS) -o $@
.cpp.o:
$(GXX) $(CPPFLAGS) -c $< -o $@
.c.o:
$(GCC) $(CFLAGS) -c $< -o $@
clean:
del $(TARGET_SPPRT) $(OBJECTS_SPPRT) $(OBJECTS_SCRYPT)