Makefile update
This commit is contained in:
parent
704640639d
commit
9420e2050a
|
@ -3,6 +3,8 @@
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
# This is where make install will install the library
|
# This is where make install will install the library
|
||||||
|
VERSION = "0.1.1"
|
||||||
|
MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
|
||||||
LIBDIR = /usr/local/lib64
|
LIBDIR = /usr/local/lib64
|
||||||
INCLUDEDIR = /usr/local/include/final
|
INCLUDEDIR = /usr/local/include/final
|
||||||
INCLUDE_HEADERS = fapp.h \
|
INCLUDE_HEADERS = fapp.h \
|
||||||
|
@ -45,7 +47,6 @@ LIB = libfinal.so
|
||||||
OBJS = fstring.o \
|
OBJS = fstring.o \
|
||||||
fpoint.o \
|
fpoint.o \
|
||||||
frect.o \
|
frect.o \
|
||||||
fswitch.o \
|
|
||||||
fscrollbar.o \
|
fscrollbar.o \
|
||||||
fprogressbar.o \
|
fprogressbar.o \
|
||||||
flineedit.o \
|
flineedit.o \
|
||||||
|
@ -54,6 +55,7 @@ OBJS = fstring.o \
|
||||||
ftogglebutton.o \
|
ftogglebutton.o \
|
||||||
fradiobutton.o \
|
fradiobutton.o \
|
||||||
fcheckbox.o \
|
fcheckbox.o \
|
||||||
|
fswitch.o \
|
||||||
flabel.o \
|
flabel.o \
|
||||||
flistbox.o \
|
flistbox.o \
|
||||||
fdialog.o \
|
fdialog.o \
|
||||||
|
@ -85,9 +87,9 @@ endif
|
||||||
$(CXX) -c $(CCXFLAGS) -fpic -o $@ $<
|
$(CXX) -c $(CCXFLAGS) -fpic -o $@ $<
|
||||||
|
|
||||||
all: dep $(OBJS)
|
all: dep $(OBJS)
|
||||||
$(CXX) $(CCXFLAGS) $(INCLUDES) $(LDFLAGS) -shared -Wl,-soname,$(LIB).0 -o $(LIB).0.1.1 $(OBJS)
|
$(CXX) $(CCXFLAGS) $(INCLUDES) $(LDFLAGS) -shared -Wl,-soname,$(LIB).$(MAJOR) -o $(LIB).$(VERSION) $(OBJS)
|
||||||
ln -s -f $(LIB).0.1.1 libfinal.so.0
|
ln -s -f $(LIB).$(VERSION) libfinal.so.$(MAJOR)
|
||||||
ln -s -f $(LIB).0 libfinal.so
|
ln -s -f $(LIB).$(MAJOR) libfinal.so
|
||||||
|
|
||||||
$(LIB): all
|
$(LIB): all
|
||||||
|
|
||||||
|
@ -99,9 +101,9 @@ profile:
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
mkdir -p $(LIBDIR)
|
mkdir -p $(LIBDIR)
|
||||||
install -c $(LIB).0.1.1 $(LIBDIR)/$(LIB).0.1.1
|
install -c $(LIB).$(VERSION) $(LIBDIR)/$(LIB).$(VERSION)
|
||||||
ln -s -f $(LIB).0.1.1 $(LIBDIR)/libfinal.so.0
|
ln -s -f $(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR)
|
||||||
ln -s -f $(LIB).0 $(LIBDIR)/libfinal.so
|
ln -s -f $(LIB).$(MAJOR) $(LIBDIR)/libfinal.so
|
||||||
ldconfig
|
ldconfig
|
||||||
mkdir -p $(INCLUDEDIR)
|
mkdir -p $(INCLUDEDIR)
|
||||||
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
||||||
|
@ -110,7 +112,7 @@ install: $(LIB)
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall: $(INCLUDE_HEADERS)
|
uninstall: $(INCLUDE_HEADERS)
|
||||||
$(RM) $(LIBDIR)/$(LIB).0.1.1 $(LIBDIR)/libfinal.so.0 $(LIBDIR)/libfinal.so
|
$(RM) $(LIBDIR)/$(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR) $(LIBDIR)/libfinal.so
|
||||||
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
||||||
do \
|
do \
|
||||||
$(RM) $(INCLUDEDIR)/$$h; \
|
$(RM) $(INCLUDEDIR)/$$h; \
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
# This is where make install will install the library
|
# This is where make install will install the library
|
||||||
|
VERSION = "0.1.1"
|
||||||
|
MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
|
||||||
LIBDIR = /usr/local/lib64
|
LIBDIR = /usr/local/lib64
|
||||||
INCLUDEDIR = /usr/local/include/final
|
INCLUDEDIR = /usr/local/include/final
|
||||||
INCLUDE_HEADERS = fapp.h \
|
INCLUDE_HEADERS = fapp.h \
|
||||||
|
@ -85,9 +87,9 @@ endif
|
||||||
$(CXX) -c $(CCXFLAGS) -fpic -o $@ $<
|
$(CXX) -c $(CCXFLAGS) -fpic -o $@ $<
|
||||||
|
|
||||||
all: dep $(OBJS)
|
all: dep $(OBJS)
|
||||||
$(CXX) $(CCXFLAGS) $(INCLUDES) $(LDFLAGS) -shared -Wl,-soname,$(LIB).0 -o $(LIB).0.1.1 $(OBJS)
|
$(CXX) $(CCXFLAGS) $(INCLUDES) $(LDFLAGS) -shared -Wl,-soname,$(LIB).$(MAJOR) -o $(LIB).$(VERSION) $(OBJS)
|
||||||
ln -s -f $(LIB).0.1.1 libfinal.so.0
|
ln -s -f $(LIB).$(VERSION) libfinal.so.$(MAJOR)
|
||||||
ln -s -f $(LIB).0 libfinal.so
|
ln -s -f $(LIB).$(MAJOR) libfinal.so
|
||||||
|
|
||||||
$(LIB): all
|
$(LIB): all
|
||||||
|
|
||||||
|
@ -99,9 +101,9 @@ profile:
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
mkdir -p $(LIBDIR)
|
mkdir -p $(LIBDIR)
|
||||||
install -c $(LIB).0.1.1 $(LIBDIR)/$(LIB).0.1.1
|
install -c $(LIB).$(VERSION) $(LIBDIR)/$(LIB).$(VERSION)
|
||||||
ln -s -f $(LIB).0.1.1 $(LIBDIR)/libfinal.so.0
|
ln -s -f $(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR)
|
||||||
ln -s -f $(LIB).0 $(LIBDIR)/libfinal.so
|
ln -s -f $(LIB).$(MAJOR) $(LIBDIR)/libfinal.so
|
||||||
ldconfig
|
ldconfig
|
||||||
mkdir -p $(INCLUDEDIR)
|
mkdir -p $(INCLUDEDIR)
|
||||||
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
||||||
|
@ -110,7 +112,7 @@ install: $(LIB)
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall: $(INCLUDE_HEADERS)
|
uninstall: $(INCLUDE_HEADERS)
|
||||||
$(RM) $(LIBDIR)/$(LIB).0.1.1 $(LIBDIR)/libfinal.so.0 $(LIBDIR)/libfinal.so
|
$(RM) $(LIBDIR)/$(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR) $(LIBDIR)/libfinal.so
|
||||||
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
||||||
do \
|
do \
|
||||||
$(RM) $(INCLUDEDIR)/$$h; \
|
$(RM) $(INCLUDEDIR)/$$h; \
|
||||||
|
|
Loading…
Reference in New Issue