mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-26 07:41:58 +00:00
Make sure output directories exist.
The targets themselves cannot have these dependencies, because they use $^ and thus putting the dependent target in there screws up the build.
This commit is contained in:
parent
e504a5883f
commit
e564a97c81
5
Makefile
5
Makefile
@ -80,11 +80,14 @@ VISUALINFO.BIN.SRCS = src/visualinfo.c
|
||||
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) glew.pc
|
||||
all debug: lib bin lib/$(LIB.SHARED) lib/$(LIB.STATIC) bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) glew.pc
|
||||
|
||||
lib:
|
||||
mkdir lib
|
||||
|
||||
bin:
|
||||
mkdir bin
|
||||
|
||||
lib/$(LIB.STATIC): $(LIB.OBJS)
|
||||
$(AR) cr $@ $^
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user