mirror of
https://github.com/nigels-com/glew.git
synced 2025-01-18 18:45:54 +00:00
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
This commit is contained in:
parent
1601537107
commit
23d0bc6157
12
Makefile
12
Makefile
@ -69,10 +69,10 @@ LIB.LIBS = $(GL_LDFLAGS)
|
|||||||
|
|
||||||
GLEWINFO.BIN = glewinfo$(BIN.SUFFIX)
|
GLEWINFO.BIN = glewinfo$(BIN.SUFFIX)
|
||||||
GLEWINFO.BIN.SRCS = src/glewinfo.c
|
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 = visualinfo$(BIN.SUFFIX)
|
||||||
VISUALINFO.BIN.SRCS = src/visualinfo.c
|
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)
|
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)
|
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)
|
$(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.SRCS) lib/$(LIB.SHARED)
|
bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.OBJS) lib/$(LIB.SHARED)
|
||||||
$(CC) $(CFLAGS) -o $@ $(GLEWINFO.BIN.SRCS) $(BIN.LIBS)
|
$(CC) $(CFLAGS) -o $@ $(GLEWINFO.BIN.OBJS) $(BIN.LIBS)
|
||||||
|
|
||||||
bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.SRCS) lib/$(LIB.SHARED)
|
bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.OBJS) lib/$(LIB.SHARED)
|
||||||
$(CC) $(CFLAGS) -o $@ $(VISUALINFO.BIN.SRCS) $(BIN.LIBS)
|
$(CC) $(CFLAGS) -o $@ $(VISUALINFO.BIN.OBJS) $(BIN.LIBS)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
$(CC) -c $(CFLAGS) -o $@ $<
|
||||||
|
Loading…
Reference in New Issue
Block a user