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

Contents of /public/pc/tools/osdk/main/common/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1136 - (show annotations)
Tue May 13 00:27:11 2014 UTC (5 years, 10 months ago) by mmu_man
File size: 324 byte(s)
Fix building libcommon

$(<) is only the first prerequisite,
we want all objects instead, so use $(^).

1 include ../../../rules.mk
2
3 #LDFLAGS += -lstdc++
4
5 VPATH = sources
6 SOURCES := $(subst sources/,,$(wildcard sources/*.cpp))
7 OBJS := $(subst .cpp,.o,$(SOURCES))
8 CPPFLAGS += -I sources -I includes
9 CPPFLAGS += -D_LIB
10
11 all: libcommon.a
12
13 clean:
14 rm -f libcommon.a *.o
15
16 libcommon.a: $(OBJS)
17 $(AR) $(ARFLAGS) $@ $(^)
18
19 # $(RANLIB) $@

  ViewVC Help
Powered by ViewVC 1.1.26