4 # set the OS type for compilation
6 # compile a library only
12 LIB_TARGET=wx_serial_gtk
15 # define library sources
17 sermain.cpp sercore.cpp sergdi.cpp serwnd.cpp serctrl.cpp serext.cpp
18 #define library objects
20 sermain.o sercore.o sergdi.o serwnd.o serctrl.o serext.o
22 #additional things needed for compile
24 # include the definitions now
25 include ../../../template.mak
28 @echo "Installing library files and headers for libwx_serial_gtk.."
29 @echo " Creating directory.."
30 @$(WXBASEDIR)/mkinstalldirs /usr/local/include/wx_serial
31 @echo " Copying headers from /include/wx"
32 @cd $(WXBASEDIR)/utils/serialize ; \
34 rm -f /usr/local/include/wx_serial/$$f ; \
35 $(INSTALL_DATA) $$f /usr/local/include/wx_serial/$$f ; \
37 @echo " Copying static library files to /usr/local/lib"
38 @cd $(WXBASEDIR)/lib/$(OS) ; \
39 for f in libwx_serial_gtk.a ; do \
40 rm -f /usr/local/lib/$$f ; \
41 $(INSTALL_DATA) $$f /usr/local/lib/$$f ; \
43 @echo " Copying shared libraries to /usr/local/lib"
44 @cd $(WXBASEDIR)/lib/$(OS) ; \
45 for f in libwx_serial_gtk.so* ; do \
46 rm -f /usr/local/lib/$$f ; \
47 $(INSTALL_PROGRAM) $$f /usr/local/lib/$$f ; \