/[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 895 - (show annotations)
Wed Sep 26 01:08:29 2012 UTC (6 years, 11 months ago) by mmu_man
File size: 885 byte(s)
Define FREEIMAGE_LIB

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 CPPFLAGS += -DFREEIMAGE_LIB
8 ifeq ($(PLATFORM),win32)
9 CPPFLAGS += -I libs
10 LDFLAGS += -L libs -lFreeImage
11 else
12 CPPFLAGS += -I $(FI_PATH)/Dist
13 LDFLAGS += -L $(FI_PATH)/Dist -lfreeimage
14 endif
15
16 LDFLAGS += -lstdc++
17 LDFLAGS += -L ../common -lcommon $(COMMON_EXTRA_LDFLAGS)
18
19 SOURCES := $(notdir $(wildcard sources/*.cpp))
20 ifneq ($(DEBUG),)
21 SOURCES += $(notdir $(wildcard sources/Tests/*.cpp))
22 CPPFLAGS += -I $(UT_PATH)/src
23 LDFLAGS += -L $(UT_PATH) -lUnitTest++
24 endif
25 VPATH = sources sources/Tests
26 CPPFLAGS += -I sources -I includes
27 OBJS := $(subst .cpp,.o,$(SOURCES))
28 #OBJS := $(SOURCES:.cpp,.o)
29
30 all: pictconv$(EXE)
31
32 pictconv$(EXE): $(OBJS)
33 $(LINK.c) -o $@ $(OBJS) $(LDFLAGS)
34
35 clean:
36 rm -f pictconv$(EXE) $(OBJS)

  ViewVC Help
Powered by ViewVC 1.1.26