-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile.linux64
More file actions
33 lines (24 loc) · 885 Bytes
/
makefile.linux64
File metadata and controls
33 lines (24 loc) · 885 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
# Makefile for Linux x64
PROJECT = ahx.hwp
BASE = build/linux64
C_COMPILER = gcc
C_COMPILER_OPTS = -c -fPIC -DHW_LINUX -DHW_LITTLE_ENDIAN -Os -Wall -Wno-pointer-sign -I../../Hollywood/SDK/include
LINKER = gcc
LINKER_OPTS = -shared -fPIC -Wl,--version-script=plugin_linux.def -Wl,-soname,$(PROJECT)
LINKER_LIBS =
OBJECTS = \
$(BASE)/purefuncs.o \
$(BASE)/replayer.o \
$(BASE)/plugin.o
$(BASE)/%.o: src/%.c
$(C_COMPILER) -o $@ $(C_COMPILER_OPTS) src/$*.c
$(PROJECT): $(OBJECTS)
$(LINKER) $(LINKER_OPTS) -o $(BASE)/$(PROJECT) $(OBJECTS) $(LINKER_LIBS)
strip --remove-section .comment $(BASE)/$(PROJECT)
file $(BASE)/$(PROJECT)
clean:
rm -f $(BASE)/*.o
rm -f $(BASE)/*.hwp
$(BASE)/purefuncs.o: src/purefuncs.c src/common/purefuncs.h
$(BASE)/replayer.o: src/replayer.c src/replayer.h
$(BASE)/plugin.o: src/plugin.c src/common/purefuncs.h src/common/version.h