1 # This is the Makefile for the viking gps viewer program.
2 # This file is licensed through the GPL version 2 or newer.
4 ifeq ($shell uname -o),Cygwin)
10 OBJECTS=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 gtkcellrendererprogress.o
12 CCFLAGS = -DWINDOWS -mms-bitfields -Wall -g
21 .PHONY: all clean realclean depend
26 pkg-config --cflags gtk+-2.0 | sed -e 's/ -I/ -isystem/g' -e 's/^-I/-isystem/g' >$@.tmp
29 pkg-config --libs gtk+-2.0 gthread-2.0 >$@.tmp
33 rm -f *.o core $(TARGET).core *.tmp
35 rm -f $(TARGET) .depend .compile_config .link_config
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`
42 .depend: .compile_config .link_config
43 $(CC) $(CFLAGS) -MM -MG $(OBJECTS:.o=.c) `cat .compile_config` >$@.tmp
45 @echo dependencys got built.