summaryrefslogtreecommitdiff
path: root/plugingui/Makefile.mingw32
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-17 14:55:48 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-17 14:55:48 +0100
commitd369bbe7164dd35e75a7bad9e7b5497512bb5fe9 (patch)
treee5077f726ffe80016f7609af4a84f548b06b6546 /plugingui/Makefile.mingw32
parent0f981dab5d477e82abe4b01f6477193707997f7d (diff)
Added PNG loadin support through a new Image class.
Diffstat (limited to 'plugingui/Makefile.mingw32')
-rw-r--r--plugingui/Makefile.mingw3214
1 files changed, 7 insertions, 7 deletions
diff --git a/plugingui/Makefile.mingw32 b/plugingui/Makefile.mingw32
index 17e232f..6d6c003 100644
--- a/plugingui/Makefile.mingw32
+++ b/plugingui/Makefile.mingw32
@@ -2,9 +2,8 @@ top_srcdir=..
include Makefile.am.plugingui
CFLAGS=-DSTANDALONE -DWIN32 -DUSE_THREAD ${PLUGIN_GUI_CFLAGS} \
- -I$(top_srcdir)/src
-LDFLAGS=-mconsole -lgdi32 -lsetupapi -lws2_32
-#-lgdi32
+ -I$(top_srcdir)/src -I/local/include
+LDFLAGS=-mconsole -lgdi32 -lsetupapi -lws2_32 -L/local/lib -lpng -lz -pthread
C_SOURCES = \
$(top_srcdir)/hugin/hugin.c \
@@ -33,6 +32,7 @@ CXX_SOURCES = \
$(top_srcdir)/plugingui/filebrowser.cc \
$(top_srcdir)/plugingui/knob.cc \
$(top_srcdir)/plugingui/combobox.cc \
+ $(top_srcdir)/plugingui/image.cc \
$(top_srcdir)/src/thread.cc \
$(top_srcdir)/src/semaphore.cc
@@ -44,13 +44,13 @@ OBJECTS=$(CXX_SOURCES:.cc=.o) $(C_SOURCES:.c=.o)
all: $(CXX_SOURCES) $(C_SOURCES) plugingui.exe
plugingui.exe: $(OBJECTS)
- g++ $(OBJECTS) $(LDFLAGS) $(CFLAGS) -o $@
+ g++ -static -static-libgcc $(OBJECTS) $(LDFLAGS) $(CFLAGS) -o $@
%.o: %.cc
- g++ -O2 -c $(CFLAGS) $< -o $@
+ g++ -static -static-libgcc -O2 -c $(CFLAGS) $< -o $@
%.o: %.c
- gcc -O2 -c $(CFLAGS) $< -o $@
+ gcc -static -static-libgcc -O2 -c $(CFLAGS) $< -o $@
clean:
- del -rf *.o plugingui.exe
+ rm -rf $(OBJECTS) plugingui.exe