12345678910111213141516171819202122232425262728293031323334 |
- # See LICENSE file for copyright and license details.
- include config.mk
- SRC = uch.c
- OBJ = $(SRC:.c=.o)
- LIB = libuch.a
- INC = uch.h
- all: $(LIB)
- $(LIB): $(OBJ)
- @$(AR) -rcs $@ $(OBJ)
- .c.o:
- @$(CC) $(CFLAGS) -c $<
- install: $(LIB) $(INC)
- @echo @ install libuch to $(PREFIX)
- @mkdir -p $(PREFIX)/lib
- @cp $(LIB) $(PREFIX)/lib/$(LIB)
- @echo @ install uch.h to $(PREFIX)
- @mkdir -p $(PREFIX)/include/
- @cp $(INC) $(PREFIX)/include/
- uninstall:
- @echo @ uninstall uch from $(PREFIX)
- @rm -f $(PREFIX)/lib/$(LIB)
- @rm -f $(PREFIX)/include/$(INC)
- clean:
- @rm -f $(LIB) $(OBJ)
|