/[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 1274 - (hide annotations)
Fri May 29 15:46:59 2015 UTC (4 years, 4 months ago) by mmu_man
File size: 973 byte(s)
pictconv: Make sure it gets installed

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 Jylam 1125 CPPFLAGS += -I $(FI_PATH)/ -I../../../../shared_libraries/freeimage/v3.12.0/Source/
13 mmu_man 1264 LDFLAGS += -L $(FI_PATH)/ -lfreeimage $(MATH_LIBS)
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 mmu_man 1274 EXECUTABLE=pictconv$(EXE)
31 mmu_man 882
32 mmu_man 1274 all: $(EXECUTABLE)
33    
34 mmu_man 882 pictconv$(EXE): $(OBJS)
35     $(LINK.c) -o $@ $(OBJS) $(LDFLAGS)
36    
37     clean:
38     rm -f pictconv$(EXE) $(OBJS)

  ViewVC Help
Powered by ViewVC 1.1.26