summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index fdcba32..8fcf9ac 100644
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,13 @@
CFLAGS = -O 1
LDFLAGS =
-OUTNAME = libfemtokit.a
+OUTPUT = libfemtokit.a
+HEADER = femtokit.h
TESTFILE = hello.c
-# Where the final compilation output is going to be placed. (See Filesystem Hierarchy
-# Standard.)
+# Directories for installation. (See Filesystem Hierarchy Standard.)
PREFIX = /usr/local/lib
+HPREFIX = /usr/local/include
# All object files are listed here:
OBJS = $(OBJS_PLATDEP)
@@ -27,10 +28,12 @@ clean:
-rm test *.o *.a
install: all
- mv -f $(OUTNAME) $(PREFIX)
+ mv -f $(OUTPUT) $(PREFIX)
+ mv -f $(HEADER) $(HPREFIX)
uninstall:
- rm -f $(PREFIX)/$(OUTNAME)
+ rm -f $(PREFIX)/$(OUTPUT)
+ rm -f $(HPREFIX)/$(HEADER)
test: all
c99 -l libfemtokit.a -o test test/$(TESTFILE)