mirror of
https://github.com/nigels-com/glew.git
synced 2025-01-19 02:55:48 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@55 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
38fbb8e02f
commit
0b6d97cee1
8
Makefile
8
Makefile
@ -69,17 +69,17 @@ BIN.SRCS = src/glewinfo.c
|
|||||||
BIN.OBJS = $(BIN.SRCS:.c=.o)
|
BIN.OBJS = $(BIN.SRCS:.c=.o)
|
||||||
BIN.LIBS = -Llib -L/usr/X11R6/lib -lglut -l$(NAME) -lGLU -lGL -lXmu -lX11
|
BIN.LIBS = -Llib -L/usr/X11R6/lib -lglut -l$(NAME) -lGLU -lGL -lXmu -lX11
|
||||||
|
|
||||||
all: lib/$(LIB.A) lib/$(LIB.SO) bin/$(BIN)
|
all: bin/$(BIN) lib/$(LIB.SO)
|
||||||
|
|
||||||
lib/$(LIB.A): $(LIB.OBJS)
|
lib/$(LIB.A): $(LIB.OBJS)
|
||||||
$(AR) cr $@ $^
|
$(AR) cr $@ $^
|
||||||
|
|
||||||
lib/$(LIB.SO): $(LIB.OBJS)
|
lib/$(LIB.SO): $(LIB.OBJS)
|
||||||
$(LD) -shared -o $@ $^
|
$(LD) -shared -o $@ $^
|
||||||
$(LN) $(LIB) lib/$(LIB.LNK)
|
$(LN) $(LIB.SO) lib/$(LIB.SO.LNK)
|
||||||
|
|
||||||
bin/$(BIN): $(BIN.SRCS)
|
bin/$(BIN): $(BIN.SRCS) lib/$(LIB.A)
|
||||||
$(CC) $(CFLAGS) -o $@ $^ $(BIN.LIBS)
|
$(CC) $(CFLAGS) -o $@ $< $(BIN.LIBS)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
$(CC) -c $(CFLAGS) -o $@ $<
|
||||||
|
Loading…
Reference in New Issue
Block a user