summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2025-05-04 20:17:13 +0200
committerEdoardo La Greca2025-05-04 20:17:13 +0200
commit4ca49ab60c19c89f25f4f3c4fd6e9993505d8437 (patch)
treeec923a2c31403298be8a65bcc067c1b46594ed27
parenta998f9f201fbefcbcc61e6570919d3feab5793b5 (diff)
add header to make file
-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)