diff options
Diffstat (limited to 'utils/wpseditor/libwps/Makefile')
-rw-r--r-- | utils/wpseditor/libwps/Makefile | 8 |
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=../../.. | |||
11 | ifneq ($or($(findstring MINGW,$(shell uname)),$(findstring Windows_NT,$(OS))),) | 11 | ifneq ($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 | |||
20 | ifeq ($(findstring Linux,$(shell uname)),Linux) | 21 | ifeq ($(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_ | |||
78 | RESULTS := $(patsubst %,libwps_%$(EXT),$(TARGETS)) | 80 | RESULTS := $(patsubst %,libwps_%$(EXT),$(TARGETS)) |
79 | 81 | ||
80 | all: $(RESULTS) | 82 | all: $(RESULTS) |
81 | @$(COPY) $(RESULTS) ../gui/bin/ | ||
82 | 83 | ||
83 | libwps_%$(EXT): $(SOURCES) | 84 | libwps_%$(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 | ||
87 | clean: | 89 | clean: |
88 | $(RM) $(RESULTS) | 90 | $(RM) $(RESULTS) |