From c9b220c1a6f92258ec063f788319cd4fbd790f9a Mon Sep 17 00:00:00 2001 From: heck Date: Mon, 12 Dec 2022 01:28:16 +0100 Subject: [PATCH] Build: forgot to add the new main Makefile --- src/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/Makefile diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..d74cbe5 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,27 @@ +# Copyright 2022, pEp Foundation +# This file is part of libpEpCxx11 +# This file may be used under the terms of the GNU General Public License version 3 +# see LICENSE + +include ../Makefile.conf + +SOURCE=$(wildcard *.c) +HEADERS=$(wildcard *.h) +OBJECTS=$(subst .c,.o,$(SOURCE)) +DEPENDS=$(subst .c,.d,$(SOURCE)) +CFLAGS+= -MMD -MP + +ifneq ($(MAKECMDGOALS),clean) + -include $(DEPENDS) +endif + +.PHONY: all install uninstall clean +.DEFAULT_GOAL := all + +all: $(TARGET) + +$(TARGET): $(OBJECTS) + +clean: + rm -vf $(TARGET) $(OBJECTS) $(DEPENDS) + rm -f *.d.*