diff options
author | Edoardo La Greca | 2025-05-04 20:17:13 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-05-04 20:17:13 +0200 |
commit | 4ca49ab60c19c89f25f4f3c4fd6e9993505d8437 (patch) | |
tree | ec923a2c31403298be8a65bcc067c1b46594ed27 | |
parent | a998f9f201fbefcbcc61e6570919d3feab5793b5 (diff) |
add header to make file
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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) |