/[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 894 - (hide 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 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 894 ifeq ($(PLATFORM),win32)
8     CPPFLAGS += -I libs
9     LDFLAGS += -L libs -lFreeImage
10     else
11 mmu_man 882 CPPFLAGS += -I $(FI_PATH)/Dist
12     LDFLAGS += -L $(FI_PATH)/Dist -lfreeimage
13 mmu_man 894 endif
14 mmu_man 882
15     LDFLAGS += -lstdc++
16     LDFLAGS += -L ../common -lcommon $(COMMON_EXTRA_LDFLAGS)
17    
18 mmu_man 890 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 mmu_man 882 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