From 4ca49ab60c19c89f25f4f3c4fd6e9993505d8437 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Sun, 4 May 2025 20:17:13 +0200 Subject: add header to make file --- Makefile | 13 ++++++++----- 1 file 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) -- cgit v1.2.3