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

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)/ -I../../../../shared_libraries/freeimage/v3.12.0/Source/
13 LDFLAGS += -L $(FI_PATH)/ -lfreeimage $(MATH_LIBS)
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 EXECUTABLE=pictconv$(EXE)
31
32 all: $(EXECUTABLE)
33
34 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