mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 06:52:20 +00:00
Fix Makefile
Dependencies (*.d) were installed in root folder. Now they are in the project folder.
This commit is contained in:
parent
235476440a
commit
9fc4fe51e2
2 changed files with 8 additions and 2 deletions
|
@ -28,15 +28,18 @@ CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE)
|
|||
LIB := grrlib
|
||||
CFILES := $(wildcard *.c)
|
||||
OFILES := $(CFILES:.c=.o)
|
||||
DEPENDS := $(OFILES:.o=.d)
|
||||
ARC := lib$(LIB).a
|
||||
HDR := $(LIB).h
|
||||
INL := $(wildcard $(LIB)/*.h)
|
||||
|
||||
export DEPSDIR := $(CURDIR)
|
||||
|
||||
all : $(OFILES)
|
||||
$(AR) -r $(ARC) $(OFILES)
|
||||
|
||||
clean :
|
||||
rm -f $(OFILES) $(ARC)
|
||||
rm -f $(OFILES) $(DEPENDS) $(ARC)
|
||||
|
||||
install :
|
||||
mkdir -p $(INSTALL_LIB) $(INSTALL_INC) $(INSTALL_INC)/grrlib
|
||||
|
|
|
@ -25,14 +25,17 @@ CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE)
|
|||
LIB := pngu
|
||||
CFILES := $(wildcard *.c)
|
||||
OFILES := $(CFILES:.c=.o)
|
||||
DEPENDS := $(OFILES:.o=.d)
|
||||
ARC := lib$(LIB).a
|
||||
HDR := $(LIB).h
|
||||
|
||||
export DEPSDIR := $(CURDIR)
|
||||
|
||||
all : $(OFILES)
|
||||
$(AR) -r $(ARC) $(OFILES)
|
||||
|
||||
clean :
|
||||
rm -f $(OFILES) $(ARC)
|
||||
rm -f $(OFILES) $(DEPENDS) $(ARC)
|
||||
|
||||
install :
|
||||
mkdir -p $(INSTALL_LIB) $(INSTALL_INC)
|
||||
|
|
Loading…
Reference in a new issue