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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 895 - (hide annotations)
Wed Sep 26 01:08:29 2012 UTC (7 years ago) by mmu_man
File size: 885 byte(s)
Define FREEIMAGE_LIB

1 mmu_man 882 include ../../../rules.mk
2    
3     CPPFLAGS += -I ../common/includes
4    
5     FI_PATH := ../../../../shared_libraries/freeimage/v3.12.0
6 mmu_man 890 UT_PATH := ../../../../shared_libraries/unittestcpp/v1.4
7 mmu_man 895 CPPFLAGS += -DFREEIMAGE_LIB
8 mmu_man 894 ifeq ($(PLATFORM),win32)
9     CPPFLAGS += -I libs
10     LDFLAGS += -L libs -lFreeImage
11     else
12 mmu_man 882 CPPFLAGS += -I $(FI_PATH)/Dist
13     LDFLAGS += -L $(FI_PATH)/Dist -lfreeimage
14 mmu_man 894 endif
15 mmu_man 882
16     LDFLAGS += -lstdc++
17     LDFLAGS += -L ../common -lcommon $(COMMON_EXTRA_LDFLAGS)
18    
19 mmu_man 890 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 mmu_man 882 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