Add a GiteaPC build system #1

Merged
Slyvtt merged 2 commits from :master into master 2022-07-09 18:00:07 +02:00
Showing only changes of commit a8a94d538f - Show all commits

View file

@ -14,6 +14,7 @@ OBJECTS=$(SHSOURCES:.S=.o) $(CSOURCES:.c=.o) $(CXXSOURCES:.cpp=.o)
LIBRARY=./libserial.a
LIBDIR:=$(shell $(CC) -print-file-name=.)
INCDIR:=$(LIBDIR)/include
all: $(SOURCES) $(LIBRARY)
@ -33,8 +34,11 @@ clean:
rm -f $(OBJECTS) $(LIBRARY)
install:
@ echo "Installing in $(LIBDIR)"
@ echo "Installing library in $(LIBDIR)"
@ echo "Installing include in $(INCDIR)"
cp $(LIBRARY) $(LIBDIR)
cp include/serial.h $(INCDIR)
uninstall:
rm -f $(LIBDIR)/$(LIBRARY)
rm -f $(INCDIR)/serial.h