]> git.street.me.uk Git - andy/viking.git/blame - src/Makefile_windows
Marking translatable string in main.c
[andy/viking.git] / src / Makefile_windows
CommitLineData
50a14534
EB
1# This is the Makefile for the viking gps viewer program.
2# This file is licensed through the GPL version 2 or newer.
3
4ifeq ($shell uname -o),Cygwin)
5CYGWIN = 1
6EXE = .exe
7endif
8
9TARGET=viking$(EXE)
10OBJECTS=viktrack.o vikwaypoint.o clipboard.o coords.o gpsmapper.o gpspoint.o file.o main.o dialog.o http.o viktreeview.o viktrwlayer.o viklayer.o viklayerspanel.o vikcoordlayer.o vikstatus.o vikwindow.o vikviewport.o vikaggregatelayer.o vikgeoreflayer.o vikfileentry.o viktrwlayer_tpwin.o viktrwlayer_propwin.o thumbnails.o background.o vikradiogroup.o vikcoord.o expedia.o mapcache.o vikmapslayer.o terraserver.o googlemaps.o gtkcellrendererprogress.o
11
12CCFLAGS = -DWINDOWS -mms-bitfields -Wall -g
13LINKFLAGS = -lwsock32
14
15ifdef DEBUG
16DFLAGS += -g
17endif
18
19all:: viking
20
21.PHONY: all clean realclean depend
22
23-include .depend
24
25.compile_config:
26 pkg-config --cflags gtk+-2.0 | sed -e 's/ -I/ -isystem/g' -e 's/^-I/-isystem/g' >$@.tmp
27 mv $@.tmp $@
28.link_config:
29 pkg-config --libs gtk+-2.0 gthread-2.0 >$@.tmp
30 mv $@.tmp $@
31
32clean::
33 rm -f *.o core $(TARGET).core *.tmp
34realclean:: clean
35 rm -f $(TARGET) .depend .compile_config .link_config
36
37$(TARGET): $(OBJECTS) .link_config
38 $(CC) $(LINKFLAGS) -o $@ $(OBJECTS) `cat .link_config`
39%.o: %.c .compile_config
40 $(CC) $(CCFLAGS) -o $@ -c $< `cat .compile_config`
41
42.depend: .compile_config .link_config
43 $(CC) $(CFLAGS) -MM -MG $(OBJECTS:.o=.c) `cat .compile_config` >$@.tmp
44 mv $@.tmp $@
45 @echo dependencys got built.
46depend::
47 @#