[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hard time figuring out what order-only prerequisites really do.(atta
From: |
Angel Tsankov |
Subject: |
Re: Hard time figuring out what order-only prerequisites really do.(attachment again) |
Date: |
Fri, 1 Jul 2005 16:22:10 +0300 |
Here're the file contents:
###############################################################################
.PHONY: rebuild clean
###############################################################################
SourceFiles := $(wildcard SourceFiles/*.cpp)
ObjectFiles := $(patsubst SourceFiles/%, IntermediateFiles/%,$(patsubst
%.cpp, %.o, $(SourceFiles)))
###############################################################################
# Builds the project.
###############################################################################
rebuild: $(ObjectFiles)
ar rcs IntermediateFiles/lib $^
###############################################################################
# Removes files generated by this script.
###############################################################################
clean:
if [ -d IntermediateFiles ]; then rm IntermediateFiles/ -R; fi
###############################################################################
# Ensures that intermediate files folder exists.
###############################################################################
IntermediateFiles:
if [ ! -d IntermediateFiles ]; then mkdir IntermediateFiles; fi
###############################################################################
# Compiles a source file.
###############################################################################
IntermediateFiles/%.o: SourceFiles/%.cpp | IntermediateFiles
gcc -c $< -o $@
- Re: Hard time figuring out what order-only prerequisites really do.(attachment again), Angel Tsankov, 2005/07/01
- Re: Hard time figuring out what order-only prerequisites really do.(attachment again), Paul D. Smith, 2005/07/01
- Re: Hard time figuring out what order-only prerequisites really do.(attachment again),
Angel Tsankov <=
- Re: Hard time figuring out what order-only prerequisites really do.(attachment again), Paul D. Smith, 2005/07/01
- Re: Hard time figuring out what order-only prerequisites really do.(attachment again), Angel Tsankov, 2005/07/01
- Re: Hard time figuring out what order-only prerequisites really do.(attachment again), Paul D. Smith, 2005/07/01
- Re: Hard time figuring out what order-only prerequisites really do.(attachment again), Angel Tsankov, 2005/07/02
- Re: Hard time figuring out what order-only prerequisites really do.(attachment again), Paul D. Smith, 2005/07/04