aboutsummaryrefslogtreecommitdiffstats
path: root/l4bds/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'l4bds/Makefile')
-rw-r--r--l4bds/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/l4bds/Makefile b/l4bds/Makefile
index 1691cee..915b3ed 100644
--- a/l4bds/Makefile
+++ b/l4bds/Makefile
@@ -1,9 +1,13 @@
CC=cc
AR=ar
-RM=rm
+RM=rm -f
+INSTALL=install -m 644
CFLAGS=-Wall -g -I.
OBJ=list.o
LIBFILE=libl4bds.a
+DESTDIR=/
+PREFIX=/usr/local
+LIBDIR=$(DESTDIR)/$(PREFIX)/lib
.PHONY: all clean
@@ -11,4 +15,9 @@ all: $(LIBFILE)
$(LIBFILE): $(OBJ)
$(AR) rcs $(LIBFILE) $(OBJ)
clean:
- $(RM) -f $(LIBFILE) $(OBJ)
+ $(RM) $(LIBFILE) $(OBJ)
+install:
+ mkdir -p $(LIBDIR)
+ $(INSTALL) -c $(LIBFILE) $(LIBDIR)
+uninstall:
+ $(RM) $(LIBDIR)/$(LIBFILE)