also install the header
This commit is contained in:
parent
93ac24def1
commit
a8a94d538f
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue