1998-08-04 13:45:20 -04:00
|
|
|
# WXXT base directory
|
|
|
|
WXBASEDIR=@WXBASEDIR@
|
|
|
|
|
|
|
|
# set the OS type for compilation
|
|
|
|
OS=@OS@
|
|
|
|
# compile a library only
|
|
|
|
RULE=gslib
|
|
|
|
|
|
|
|
# define common stuff
|
|
|
|
|
|
|
|
# define library name
|
1998-09-03 09:58:56 -04:00
|
|
|
LIB_TARGET=wx_serial_gtk
|
1998-08-04 13:45:20 -04:00
|
|
|
LIB_MAJOR=2
|
|
|
|
LIB_MINOR=0
|
|
|
|
# define library sources
|
|
|
|
LIB_SRC=\
|
|
|
|
sermain.cpp sercore.cpp sergdi.cpp serwnd.cpp serctrl.cpp serext.cpp
|
|
|
|
#define library objects
|
|
|
|
LIB_OBJ=\
|
|
|
|
sermain.o sercore.o sergdi.o serwnd.o serctrl.o serext.o
|
|
|
|
|
|
|
|
#additional things needed for compile
|
|
|
|
|
|
|
|
# include the definitions now
|
|
|
|
include ../../../template.mak
|
1998-09-03 09:58:56 -04:00
|
|
|
|
|
|
|
install::
|
|
|
|
@echo "Installing library files and headers for libwx_serial_gtk.."
|
|
|
|
@echo " Creating directory.."
|
|
|
|
@$(WXBASEDIR)/mkinstalldirs /usr/local/include/wx_serial
|
|
|
|
@echo " Copying headers from /include/wx"
|
|
|
|
@cd $(WXBASEDIR)/utils/serialize ; \
|
|
|
|
for f in *.h ; do \
|
|
|
|
rm -f /usr/local/include/wx_serial/$$f ; \
|
|
|
|
$(INSTALL_DATA) $$f /usr/local/include/wx_serial/$$f ; \
|
|
|
|
done
|
|
|
|
@echo " Copying static library files to /usr/local/lib"
|
|
|
|
@cd $(WXBASEDIR)/lib/$(OS) ; \
|
|
|
|
for f in libwx_serial_gtk.a ; do \
|
|
|
|
rm -f /usr/local/lib/$$f ; \
|
|
|
|
$(INSTALL_DATA) $$f /usr/local/lib/$$f ; \
|
|
|
|
done
|
|
|
|
@echo " Copying shared libraries to /usr/local/lib"
|
|
|
|
@cd $(WXBASEDIR)/lib/$(OS) ; \
|
|
|
|
for f in libwx_serial_gtk.so* ; do \
|
|
|
|
rm -f /usr/local/lib/$$f ; \
|
|
|
|
$(INSTALL_PROGRAM) $$f /usr/local/lib/$$f ; \
|
|
|
|
done
|