18 lines
297 B
Makefile
18 lines
297 B
Makefile
|
include ../Makefile.common
|
||
|
|
||
|
OBJ = $(patsubst %.c,%.o,$(wildcard src/*.c))
|
||
|
LIBNAME = libglew.a
|
||
|
CFLAGS += -Iinclude
|
||
|
|
||
|
all: $(LIBNAME)
|
||
|
|
||
|
$(LIBNAME): $(OBJ)
|
||
|
@echo Creating archive $@
|
||
|
@ar -crsu $@ $(OBJ)
|
||
|
@echo
|
||
|
|
||
|
clean:
|
||
|
-@$(RM) src$(SLASH)*.o
|
||
|
-@$(RM) src$(SLASH)*.d
|
||
|
-@$(RM) $(LIBNAME)
|