add a GiteaPC build system
This commit is contained in:
parent
ea93ab3087
commit
93ac24def1
|
@ -0,0 +1,3 @@
|
|||
libserial.a
|
||||
src/*.o
|
||||
giteapc-config.make
|
8
Makefile
8
Makefile
|
@ -13,6 +13,8 @@ CSOURCES=$(wildcard src/*.c)
|
|||
OBJECTS=$(SHSOURCES:.S=.o) $(CSOURCES:.c=.o) $(CXXSOURCES:.cpp=.o)
|
||||
LIBRARY=./libserial.a
|
||||
|
||||
LIBDIR:=$(shell $(CC) -print-file-name=.)
|
||||
|
||||
all: $(SOURCES) $(LIBRARY)
|
||||
|
||||
$(LIBRARY): $(OBJECTS)
|
||||
|
@ -30,3 +32,9 @@ $(LIBRARY): $(OBJECTS)
|
|||
clean:
|
||||
rm -f $(OBJECTS) $(LIBRARY)
|
||||
|
||||
install:
|
||||
@ echo "Installing in $(LIBDIR)"
|
||||
cp $(LIBRARY) $(LIBDIR)
|
||||
|
||||
uninstall:
|
||||
rm -f $(LIBDIR)/$(LIBRARY)
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
# giteapc: version=1
|
||||
|
||||
-include giteapc-config.make
|
||||
|
||||
configure:
|
||||
|
||||
build:
|
||||
@ make
|
||||
|
||||
install:
|
||||
@ make install
|
||||
|
||||
uninstall:
|
||||
@ make uninstall
|
||||
|
||||
.PHONY: configure build install uninstall
|
Loading…
Reference in New Issue