Skip to content

Commit

Permalink
fix parallel build - gnu make specific syntax?
Browse files Browse the repository at this point in the history
  • Loading branch information
lnussel committed Sep 7, 2005
1 parent 7b6c3a3 commit cb75384
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/unix/Makefile
Expand Up @@ -361,16 +361,18 @@ default:build_release
debug: build_debug
release: build_release

build_debug:
build_debug: B=$(BD)
build_debug: makedirs
$(MAKE) targets B=$(BD) CFLAGS="$(DEBUG_CFLAGS)"

build_release:
build_release: B=$(BR)
build_release: makedirs
$(MAKE) targets B=$(BR) CFLAGS="$(RELEASE_CFLAGS)"

#Build both debug and release builds
all:build_debug build_release

targets:makedirs $(TARGETS)
targets: $(TARGETS)

makedirs:
@if [ ! -d $(B) ];then mkdir $(B);fi
Expand Down

0 comments on commit cb75384

Please sign in to comment.