/[projet1]/public/pc/tools/osdk/main/pictconv/Makefile
Defence Force logotype

Contents of /public/pc/tools/osdk/main/pictconv/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 894 - (show annotations)
Wed Sep 26 00:56:51 2012 UTC (7 years ago) by mmu_man
File size: 857 byte(s)
Attempt to link to freeimage with mingw32, still failing though.

1 include ../../../rules.mk
2
3 CPPFLAGS += -I ../common/includes
4
5 FI_PATH := ../../../../shared_libraries/freeimage/v3.12.0
6 UT_PATH := ../../../../shared_libraries/unittestcpp/v1.4
7 ifeq ($(PLATFORM),win32)
8 CPPFLAGS += -I libs
9 LDFLAGS += -L libs -lFreeImage
10 else
11 CPPFLAGS += -I $(FI_PATH)/Dist
12 LDFLAGS += -L $(FI_PATH)/Dist -lfreeimage
13 endif
14
15 LDFLAGS += -lstdc++
16 LDFLAGS += -L ../common -lcommon $(COMMON_EXTRA_LDFLAGS)
17
18 SOURCES := $(notdir $(wildcard sources/*.cpp))
19 ifneq ($(DEBUG),)
20 SOURCES += $(notdir $(wildcard sources/Tests/*.cpp))
21 CPPFLAGS += -I $(UT_PATH)/src
22 LDFLAGS += -L $(UT_PATH) -lUnitTest++
23 endif
24 VPATH = sources sources/Tests
25 CPPFLAGS += -I sources -I includes
26 OBJS := $(subst .cpp,.o,$(SOURCES))
27 #OBJS := $(SOURCES:.cpp,.o)
28
29 all: pictconv$(EXE)
30
31 pictconv$(EXE): $(OBJS)
32 $(LINK.c) -o $@ $(OBJS) $(LDFLAGS)
33
34 clean:
35 rm -f pictconv$(EXE) $(OBJS)

  ViewVC Help
Powered by ViewVC 1.1.26