Skip to content

Commit

Permalink
Split actual library code and tests into separate subdirectories.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddunbar committed Oct 8, 2011
1 parent 898fe87 commit 4bc5044
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Expand Up @@ -21,7 +21,7 @@ ExtraFlags := \
-pedantic -Wall -Wextra \
-Wno-unused-parameter -Wno-missing-field-initializers
CommonFlags := $(CFLAGS) $(OPTFLAGS) $(ExtraFlags)
CompileOnlyFlags := -std=c99
CompileOnlyFlags := -std=c99 -I$(SRCROOT)/src
CompileFlags := $(CompileOnlyFlags) $(CommonFlags)
LinkFlags := $(CommonFlags)
LinkFlags.glutTest := $(LinkFlags) \
Expand All @@ -48,7 +48,9 @@ $(OBJROOT)/glutTest: $(Objects.glutTest)
$(OBJROOT)/perfTest: $(Objects.perfTest)
$(LD) -o $@ $(Objects.perfTest) $(LinkFlags.perfTest)

$(OBJROOT)/%.o: $(SRCROOT)/%.c $(Headers) Makefile $(OBJROOT)/.dir
$(OBJROOT)/%.o: $(SRCROOT)/tests/%.c $(Headers) Makefile $(OBJROOT)/.dir
$(CC) -c -o $@ $< $(CompileFlags)
$(OBJROOT)/%.o: $(SRCROOT)/src/%.c $(Headers) Makefile $(OBJROOT)/.dir
$(CC) -c -o $@ $< $(CompileFlags)

%/.dir:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4bc5044

Please sign in to comment.