🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: be.comp.programming
1 messages
1 total messages Started by Rudy Gevaert Tue, 19 Nov 2002 22:48
GNU Make
#6854
Author: Rudy Gevaert
Date: Tue, 19 Nov 2002 22:48
41 lines
1892 bytes
Hallo,

Ik probeer een Makefile ineen te steken waarbij alle sources in de dir
./src/ staan en waarbij alle gecompileerde bestanden in ./build/
zouden moeten komen.

Het volgende heb ik al:

srcdir = .

CC := g++
CFLAGS := -g -Wall
LFLAGS :=
VPATH := $(srcdir)/src

objects =  Item.o Lid.o Geleend.o Databank.o

all: $(objects)
     $(CC) -o main $(objects)

Item.o: Item.cpp Item.h
Lid.o: Lid.cpp Lid.h
Geleend.o: Geleend.cpp Geleend.h
Databank.o: Databank.cpp Databank.h

.PHONY : clean
clean: 
       rm build/*

Maar als ik het goed door heb worden hier de gecompileerde bestanden
in de . dir gezet.  Hoe kan ik maken dat ze in ./build komen?

Bedankt op voorhand,
-- 
Rudy Gevaert - info@webworm.org - http://www.webworm.org
http://savannah.gnu.org/projects/glms [glms admin]
http://savannah.gnu.org/ [savannah developer] GNU/Linux advocate -
http://www.gnu.org/

To sit alone with my conscience will be judgment enough for me.   
                              - Charles William Stubbs
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads