From 23d0bc61576c72d83045b9574553b7e31b2a7579 Mon Sep 17 00:00:00 2001 From: nigels Date: Tue, 17 Nov 2009 02:50:58 +0000 Subject: [PATCH] tfogal 'at' alumni.unh.edu - build binaries from the object files instead of directly from the source files. git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@564 783a27ee-832a-0410-bc00-9f386506c6dd --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 4c64a31..8d4f12b 100644 --- a/Makefile +++ b/Makefile @@ -69,10 +69,10 @@ LIB.LIBS = $(GL_LDFLAGS) GLEWINFO.BIN = glewinfo$(BIN.SUFFIX) GLEWINFO.BIN.SRCS = src/glewinfo.c -GLEWINFO.BIN.OBJS = $(GLEWINFO_BIN.SRCS:.c=.o) +GLEWINFO.BIN.OBJS = $(GLEWINFO.BIN.SRCS:.c=.o) VISUALINFO.BIN = visualinfo$(BIN.SUFFIX) VISUALINFO.BIN.SRCS = src/visualinfo.c -VISUALINFO.BIN.OBJS = $(VISUALINFO_BIN.SRCS:.c=.o) +VISUALINFO.BIN.OBJS = $(VISUALINFO.BIN.SRCS:.c=.o) BIN.LIBS = -Llib $(LDFLAGS.DYNAMIC) -l$(NAME) $(LDFLAGS.EXTRA) $(LDFLAGS.GL) all debug: lib/$(LIB.SHARED) lib/$(LIB.STATIC) bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) @@ -91,11 +91,11 @@ else $(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK) endif -bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.SRCS) lib/$(LIB.SHARED) - $(CC) $(CFLAGS) -o $@ $(GLEWINFO.BIN.SRCS) $(BIN.LIBS) +bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.OBJS) lib/$(LIB.SHARED) + $(CC) $(CFLAGS) -o $@ $(GLEWINFO.BIN.OBJS) $(BIN.LIBS) -bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.SRCS) lib/$(LIB.SHARED) - $(CC) $(CFLAGS) -o $@ $(VISUALINFO.BIN.SRCS) $(BIN.LIBS) +bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.OBJS) lib/$(LIB.SHARED) + $(CC) $(CFLAGS) -o $@ $(VISUALINFO.BIN.OBJS) $(BIN.LIBS) %.o: %.c $(CC) -c $(CFLAGS) -o $@ $<