summaryrefslogtreecommitdiff
path: root/utils/wpseditor/libwps
diff options
context:
space:
mode:
Diffstat (limited to 'utils/wpseditor/libwps')
-rw-r--r--utils/wpseditor/libwps/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/wpseditor/libwps/Makefile b/utils/wpseditor/libwps/Makefile
index 879cc8e4db..827a4b4194 100644
--- a/utils/wpseditor/libwps/Makefile
+++ b/utils/wpseditor/libwps/Makefile
@@ -11,7 +11,8 @@ ROOT=../../..
11ifneq ($or($(findstring MINGW,$(shell uname)),$(findstring Windows_NT,$(OS))),) 11ifneq ($or($(findstring MINGW,$(shell uname)),$(findstring Windows_NT,$(OS))),)
12 OS = w32 12 OS = w32
13 CC = mingw32-gcc 13 CC = mingw32-gcc
14 COPY = copy 14 COPY = copy /Y
15 COPY_TO = ..\\gui\\bin
15 RM = del 16 RM = del
16 EXT = .dll 17 EXT = .dll
17 LDFLAGS = -DBUILD_DLL 18 LDFLAGS = -DBUILD_DLL
@@ -20,7 +21,8 @@ endif
20ifeq ($(findstring Linux,$(shell uname)),Linux) 21ifeq ($(findstring Linux,$(shell uname)),Linux)
21 OS = linux 22 OS = linux
22 CC = gcc 23 CC = gcc
23 COPY = cp 24 COPY = cp -f
25 COPY_TO = ../gui/bin
24 RM = rm -f 26 RM = rm -f
25 EXT = .so 27 EXT = .so
26 LDFLAGS = -fPIC 28 LDFLAGS = -fPIC
@@ -78,11 +80,11 @@ CFLAGS = -g -Wall -D__PCTOOL__ -DWPSEDITOR -DDEBUG -DROCKBOX_DIR_LEN=1 -DBUTTON_
78RESULTS := $(patsubst %,libwps_%$(EXT),$(TARGETS)) 80RESULTS := $(patsubst %,libwps_%$(EXT),$(TARGETS))
79 81
80all: $(RESULTS) 82all: $(RESULTS)
81 @$(COPY) $(RESULTS) ../gui/bin/
82 83
83libwps_%$(EXT): $(SOURCES) 84libwps_%$(EXT): $(SOURCES)
84 @echo CC [$(subst libwps_,,$(subst $(EXT),,$@))] 85 @echo CC [$(subst libwps_,,$(subst $(EXT),,$@))]
85 @$(CC) $(INCLUDE) $(CFLAGS) -D$(subst libwps_,,$(subst $(EXT),,$@)) $(LDFLAGS) -shared -o $@ $+ 86 @$(CC) $(INCLUDE) $(CFLAGS) -D$(subst libwps_,,$(subst $(EXT),,$@)) $(LDFLAGS) -shared -o $@ $+
87 @$(COPY) $@ $(COPY_TO)
86 88
87clean: 89clean:
88 $(RM) $(RESULTS) 90 $(RM) $(RESULTS)