diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/Makefile b/src/main/Makefile index 20a44ec..c6dc1e1 100644 --- a/src/main/Makefile +++ b/src/main/Makefile @@ -13,7 +13,9 @@ LOCALDIR = main # ==> Ajouter ici les objets a compiler # Si un objet necessite une compilation non-standard (i.e. pas de regle du style Foo.o : Foo.cc Foo.h), rajouter # cette regle. -OBJS = Vector3D.o Particle.o +LOCALOBJS = Vector3D.o Particle.o +OBJS=$(addprefix $(BINDIR)/$(LOCALDIR)/,$(LOCALOBJS)) +.PHONY = lib all: checkdirs lib @@ -27,9 +29,9 @@ $(BINDIR)/$(LOCALDIR): # Cree une librairie statique des fichiers objets lib: $(OBJS) @echo "Packing library..." - ar rcs $(BINDIR)/$(LOCALDIR)/libvhc.a $(addprefix $(BINDIR)/$(LOCALDIR)/,$(OBJS)) + ar rcs $(BINDIR)/$(LOCALDIR)/libvhc.a $(OBJS) @echo "Done packing library." # Regle implicite qui modifie le repertoire de destination des fichiers .o -%.o: %.cc - $(CXX) $(CXXFLAGS) -c $< -o $(BINDIR)/$(LOCALDIR)/$@
\ No newline at end of file +$(BINDIR)/$(LOCALDIR)/%.o: %.cc + $(CXX) $(CXXFLAGS) -c $< -o $@
\ No newline at end of file |