diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2011-04-28 23:59:11 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2011-04-28 23:59:11 +0000 |
commit | 926085f36e3a68803e0b356e173cce86da5a4e53 (patch) | |
tree | db76fd029614b4e9ddedbeb5778c7e3379c9c99e /src/native/windows/setup/cleansweep/Makefile | |
parent | 72023383399b099d710c4f384b465ebd9f13f825 (diff) | |
download | jitsi-926085f36e3a68803e0b356e173cce86da5a4e53.zip jitsi-926085f36e3a68803e0b356e173cce86da5a4e53.tar.gz jitsi-926085f36e3a68803e0b356e173cce86da5a4e53.tar.bz2 |
Commits work in progress on Windows delta/bspatch updates.
Diffstat (limited to 'src/native/windows/setup/cleansweep/Makefile')
-rw-r--r-- | src/native/windows/setup/cleansweep/Makefile | 97 |
1 files changed, 55 insertions, 42 deletions
diff --git a/src/native/windows/setup/cleansweep/Makefile b/src/native/windows/setup/cleansweep/Makefile index ead058b..87cfac9 100644 --- a/src/native/windows/setup/cleansweep/Makefile +++ b/src/native/windows/setup/cleansweep/Makefile @@ -1,42 +1,55 @@ -#
-# SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
-#
-# Distributable under LGPL license.
-# See terms of license at gnu.org.
-#
-
-MINGW_HOME ?= C:/mingw
-TARGET_BASENAME ?= cleansweep
-TARGET_DIR ?= ../../../../../release/windows/tmp
-
-ifeq ($(wildcard /bin/cygpath.*),/bin/cygpath.exe)
- target.dir := $(shell cygpath --mixed "$(TARGET_DIR)")
- cygwin.target.dir := $(shell cygpath --unix "$(TARGET_DIR)")
-else
- target.dir := "$(TARGET_DIR)"
- cygwin.target.dir := "$(TARGET_DIR)"
-endif
-
-CC = $(MINGW_HOME)/bin/gcc
-CPPFLAGS = \
- -O2 \
- -Wall -Wreturn-type \
- -DPRODUCTNAME='"$(PRODUCTNAME)"' \
- -DWINVER=0x0502 -D_WIN32_WINNT=0x0502
-LDFLAGS = -mwindows
-LIBS = -lshell32
-
-MACHINE = $(shell $(CC) -dumpmachine)
-WINDRES = $(MINGW_HOME)/bin/windres
-ifneq ("x$(MACHINE)","x")
-ifeq ($(wildcard $(MINGW_HOME)/bin/$(MACHINE)-windres.*),$(MINGW_HOME)/bin/$(MACHINE)-windres.exe)
- WINDRES = $(MINGW_HOME)/bin/$(MACHINE)-windres
-endif
-endif
-
-$(cygwin.target.dir)/$(TARGET_BASENAME).exe: cleansweep.c $(cygwin.target.dir)/cleansweep.res
- $(CC) $(CPPFLAGS) cleansweep.c "$(target.dir)/cleansweep.res" $(LDFLAGS) -o "$(target.dir)/$(TARGET_BASENAME).exe" $(LIBS)
- -$(MINGW_HOME)/$(MACHINE)/bin/strip "$(target.dir)/$(TARGET_BASENAME).exe"
-
-$(cygwin.target.dir)/cleansweep.res: cleansweep.rc
- $(WINDRES) -I../../../../../resources/install/windows $^ -O coff -o "$(target.dir)/cleansweep.res"
+# +# Jitsi, the OpenSource Java VoIP and Instant Messaging client. +# +# Distributable under LGPL license. +# See terms of license at gnu.org. +# + +MINGW_HOME ?= C:/mingw +PRODUCTNAME ?= Jitsi +TARGET_BASENAME ?= cleansweep +TARGET_DIR ?= ../../../../../release/windows/tmp + +ifeq ($(wildcard /bin/cygpath.*),/bin/cygpath.exe) + target.dir := $(shell cygpath --mixed "$(TARGET_DIR)") + cygwin.target.dir := $(shell cygpath --unix "$(TARGET_DIR)") +else + target.dir := "$(TARGET_DIR)" + cygwin.target.dir := "$(TARGET_DIR)" +endif + +CC = $(MINGW_HOME)/bin/gcc.exe +CPPFLAGS = \ + -O2 \ + -Wall -Wreturn-type \ + -DWINVER=0x0502 -D_WIN32_WINNT=0x0502 \ + -I$(target.dir) +LDFLAGS = -mwindows +LIBS = -lshell32 + +MACHINE = $(shell $(CC) -dumpmachine) +WINDRES = $(MINGW_HOME)/bin/windres.exe +ifneq ("x$(MACHINE)","x") +ifeq ($(wildcard $(MINGW_HOME)/bin/$(MACHINE)-windres.*),$(MINGW_HOME)/bin/$(MACHINE)-windres.exe) + WINDRES = $(MINGW_HOME)/bin/$(MACHINE)-windres.exe +endif +endif + +ifdef PACKAGECODE + DEFINE_PACKAGECODE = define PACKAGECODE "$(strip $(PACKAGECODE))" +else + DEFINE_PACKAGECODE = undef PACKAGECODE +endif + +$(cygwin.target.dir)/$(TARGET_BASENAME).exe: cleansweep.c $(cygwin.target.dir)/config.h $(cygwin.target.dir)/cleansweep.res + $(CC) $(CPPFLAGS) cleansweep.c $(target.dir)/cleansweep.res $(LDFLAGS) -o $(target.dir)/$(TARGET_BASENAME).exe $(LIBS) + -$(MINGW_HOME)/$(MACHINE)/bin/strip.exe $(target.dir)/$(TARGET_BASENAME).exe + +.PHONY: $(cygwin.target.dir)/config.h + +$(cygwin.target.dir)/config.h: + -rm.exe -f ../../../../../resources/install/windows/config.h + echo.exe -e '#define PRODUCTNAME "$(PRODUCTNAME)"\n#$(DEFINE_PACKAGECODE)' > $(cygwin.target.dir)/config.h + +$(cygwin.target.dir)/cleansweep.res: cleansweep.rc $(cygwin.target.dir)/config.h + $(WINDRES) -I../../../../../resources/install/windows -I$(target.dir) cleansweep.rc -O coff -o $(target.dir)/cleansweep.res |