/[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 890 - (show annotations)
Wed Sep 26 00:21:28 2012 UTC (7 years, 1 month ago) by mmu_man
File size: 770 byte(s)
Fix building pictconv with unittests.

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

  ViewVC Help
Powered by ViewVC 1.1.26