forked from larsiusprime/SteamWrap
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (29 loc) · 916 Bytes
/
Makefile
File metadata and controls
42 lines (29 loc) · 916 Bytes
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
38
39
40
41
42
LBITS := $(shell getconf LONG_BIT)
INSTALL_PREFIX ?= /usr/local/lib
UNAME := $(shell uname)
CFLAGS = -Wall -O3 -fPIC -I sdk/public -I $(HASHLINK_SRC)/src -std=c++0x
ifeq ($(UNAME),Darwin)
OS=osx
ARCH=
else
OS=linux
ARCH=$(LBITS)
endif
SDK_BIN_DIR = sdk/redistributable_bin/$(OS)$(ARCH)
LFLAGS = -lhl -lsteam_api -lstdc++ -L $(SDK_BIN_DIR)
SRC = native/cloud.o native/common.o native/controller.o native/friends.o native/gameserver.o \
native/matchmaking.o native/networking.o native/stats.o native/ugc.o
all: ${SRC}
${CC} ${CFLAGS} -shared -o steam.hdll ${SRC} ${LFLAGS}
install:
cp steam.hdll ${INSTALL_PREFIX}
cp $(SDK_BIN_DIR)/libsteam_api.* ${INSTALL_PREFIX}
uninstall:
rm -f ${INSTALL_PREFIX}/steam.hdll ${INSTALL_PREFIX}/libsteam_api.*
.SUFFIXES : .cpp .o
.cpp.o :
${CC} ${CFLAGS} -o $@ -c $<
clean_o:
rm -f ${SRC}
clean: clean_o
rm -f steam.hdll