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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1136 - (hide annotations)
Tue May 13 00:27:11 2014 UTC (5 years, 8 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 mmu_man 873 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 mmu_man 874 CPPFLAGS += -D_LIB
10 mmu_man 873
11     all: libcommon.a
12    
13     clean:
14     rm -f libcommon.a *.o
15    
16     libcommon.a: $(OBJS)
17 mmu_man 1136 $(AR) $(ARFLAGS) $@ $(^)
18 mmu_man 873
19     # $(RANLIB) $@

  ViewVC Help
Powered by ViewVC 1.1.26