Browse Source

Build: forgot to add the new main Makefile

master
heck 2 years ago
parent
commit
c9b220c1a6
  1. 27
      src/Makefile

27
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.*
Loading…
Cancel
Save