summaryrefslogtreecommitdiff
path: root/plugins/IEView/Makefile
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-05-15 10:38:20 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-05-15 10:38:20 +0000
commit48540940b6c28bb4378abfeb500ec45a625b37b6 (patch)
tree2ef294c0763e802f91d868bdef4229b6868527de /plugins/IEView/Makefile
parent5c350913f011e119127baeb32a6aedeb4f0d33bc (diff)
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/Makefile')
-rw-r--r--plugins/IEView/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/IEView/Makefile b/plugins/IEView/Makefile
new file mode 100644
index 0000000000..cef8e3a42e
--- /dev/null
+++ b/plugins/IEView/Makefile
@@ -0,0 +1,41 @@
+# Project: ieview
+
+CPP = g++.exe
+CC = gcc.exe
+WINDRES = windres.exe
+RM = rm
+UPX = upx -9 -q --compress-icons=0
+SRC = IEView.cpp ieview_services.cpp ieview_main.cpp HTMLBuilder.cpp ChatHTMLBuilder.cpp MUCCHTMLBuilder.cpp ScriverHTMLBuilder.cpp TabSRMMHTMLBuilder.cpp HistoryHTMLBuilder.cpp Options.cpp Template.cpp TemplateHTMLBuilder.cpp TextToken.cpp Utils.cpp
+RES = ieview.res
+OBJ = $(SRC:.cpp=.o) $(RES)
+BIN = ieview.dll
+INCS = -I"../../include"
+CFLAGS = $(INCS) -DBUILDING_DLL=1 -DUNICODE -fexpensive-optimizations -O3 -Os -fno-exceptions -Wno-error -Wall
+CXXFLAGS = $(INCS) -DBUILDING_DLL=1 -DUNICODE -fexpensive-optimizations -O3 -Os -fno-exceptions -Wno-error -Wall
+# -save-temps
+LIBS = -lversion -lwsock32 -lole32 -lcomctl32 -luuid -loleaut32
+LFLAGS = -s -mdll -mwindows --add-stdcall-alias
+#LFLAGS = -mdll -mwindows -Wl,-Map,ieview.map --no-export-all-symbols --add-stdcall-alias -g3
+RCFLAGS = -I rc -O coff
+# --add-stdcall-alias -s --no-export-all-symbols
+
+.PHONY: all all-before all-after clean clean-custom
+
+all: all-before $(BIN) all-after
+ifdef PACK
+ $(UPX) $(BIN)
+endif
+
+clean: clean-custom
+ $(RM) -f $(OBJ) $(BIN)
+
+depend :
+ $(CPP) -MM $(CFLAGS) $(SRC)>Makefile.dep
+
+$(RES): $(RES:.res=.rc) resource.h
+ $(WINDRES) $(RCFLAGS) -i $(RES:.res=.rc) -o $(RES)
+
+$(BIN): $(OBJ)
+ $(CPP) $(CFLAGS) $(OBJ) $(LIBS) $(LFLAGS) -o $(BIN) -Wl
+
+-include Makefile.dep