Navigation Menu

Skip to content

Commit

Permalink
oops. fixed Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Nov 7, 2011
1 parent cb2442b commit 4f23a9c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Makefile.w32
Expand Up @@ -3,7 +3,7 @@ USEDLL=yes
ifeq (yes, $(USEDLL))
CFLAGS = -Wall -D GROWL_DLL
CPPFLAGS = -Wall -D GROWL_DLL -D GROWL_CPP_DLL
LDFLAGS = -shared -lws2_32
LDFLAGS = -lws2_32
LIBTARGET = lib/libgrowl.dll
LIBPPTARGET = lib/libgrowl++.dll
else
Expand All @@ -18,26 +18,25 @@ all: dirs bin/gntp-send.exe bin/gntp-send++.exe



bin/gntp-send.exe : obj/gntp-send.o $(LIBTARGET)
gcc $^ -o $@ $(LDFLAGS)

bin/gntp-send++.exe : obj/gntp-send++.o $(LIBPPTARGET)
g++ $^ -o $@ $(LDFLAGS)
bin/gntp-send.exe : obj/gntp-send.o lib/libgrowl.a
gcc -o $@ $^ $(LDFLAGS)

bin/gntp-send++.exe : obj/gntp-send++.o lib/libgrowl++.a
gcc -o $@ $^ $(LDFLAGS) -lstdc++

lib/libgrowl.a : obj/growl.o obj/tcp.o obj/md5.o
ar rc $@ $^
ranlib $@

lib/libgrowl++.a : obj/growl++.o obj/tcp.o obj/md5.o
lib/libgrowl++.a : obj/growl.o obj/growl++.o obj/tcp.o obj/md5.o
ar rc $@ $^
ranlib $@

lib/libgrowl.dll: obj/growl.o obj/tcp.o obj/md5.o
gcc -o lib/libgrowl.dll $^ -Wl,--out-implib,$@ $(LDFLAGS)
gcc -shared -o lib/libgrowl.dll $^ -Wl,--out-implib,$@ $(LDFLAGS)

lib/libgrowl++.dll: obj/growl++.o obj/growl.o obj/tcp.o obj/md5.o
g++ -o lib/libgrowl++.dll $^ -Wl,--out-implib,$@ $(LDFLAGS)
g++ -shared -o lib/libgrowl++.dll $^ -Wl,--out-implib,$@ $(LDFLAGS)



Expand Down

0 comments on commit 4f23a9c

Please sign in to comment.