1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # See LICENSE file for copyright and license details.
- include config.mk
- SRC = front.c utilize.c examine.c
- OBJ = $(SRC:.c=.o)
- LIB = libilk.a
- INC = front.h utilize.h examine.h
- PKG_STR = "\nIf this is a local install you may need to run:\n\t\
- \"export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig\" \nto use this library.\n"
- .PHONY: all install uninstall clean
- all: $(LIB)
- $(LIB): $(OBJ)
- @$(AR) -rcs $@ $(OBJ)
- .c.o:
- @$(CC) $(CFLAGS) -c $<
- install: $(LIB) $(INC)
- @echo @ install libilk to $(PREFIX)
- @mkdir -p $(PREFIX)/lib
- @cp $(LIB) $(PREFIX)/lib/
- @echo @ install ilk.h to $(PREFIX)
- @mkdir -p $(PREFIX)/include/ilk
- @cp $(INC) $(PREFIX)/include/ilk
- @echo @ install ilk.pc to $(PREFIX)
- @printf $(PKG_STR)
- @mkdir -p $(PREFIX)/lib/pkgconfig
- @cp ilk.pc $(PREFIX)/lib/pkgconfig/
- uninstall:
- @echo @ uninstall ilk from $(PREFIX)
- @rm -f $(PREFIX)/lib/$(LIB)
- @rm -rf $(PREFIX)/include/ilk/
- @rm -f $(PREFIX)/lib/pkgconfig/ilk.pc
- clean:
- @rm -f $(LIB) $(OBJ)
|