Permalink
Browse files

Updated Makefile to create directories if needed

The makefile will create the output directories if they do not exist.
Added corresponding entries to the gitignore file to exclude files
generated.
  • Loading branch information...
epreston committed Nov 17, 2013
1 parent 65371f5 commit 1f3ab9f9b35e4340ddb935f026dc5eacc0f29225
Showing with 17 additions and 1 deletion.
  1. +6 −0 .gitignore
  2. +11 −1 Makefile
View
@@ -1,4 +1,10 @@
# Linux Object Files
src/*.o
lib/linux/*
bin/linux/*
# Prebuilt OSX Executables
lib/osx64/*
bin/osx64/*
View
@@ -11,6 +11,7 @@ ifeq ($(ARCH),Darwin)
LDFLAGS = -framework GLUT -framework OpenGL -framework Cocoa
endif
mkdir=mkdir -p
rm=rm -f
AR=ar cq
RANLIB=ranlib
@@ -31,10 +32,19 @@ DEMO_CPP=./src/demos/app.cpp ./src/demos/timing.cpp ./src/demos/main.cpp
DEMOS=ballistic bigballistic blob bridge explosion fireworks flightsim fracture platform ragdoll sailboat
# OUTPUT DIRECTORIES
OUTDIRS=./lib/linux ./bin/linux
# BUILD COMMANDS
all: $(CYCLONELIB) $(DEMOS)
all: out_dirs $(CYCLONELIB) $(DEMOS)
out_dirs:
$(mkdir) $(OUTDIRS)
$(CYCLONELIB): $(CYCLONEOBJS)

0 comments on commit 1f3ab9f

Please sign in to comment.