]>
Commit | Line | Data |
---|---|---|
9fdd8384 GL |
1 | # WXXT base directory |
2 | WXBASEDIR=@WXBASEDIR@ | |
3 | ||
4 | # set the OS type for compilation | |
5 | OS=@OS@ | |
6 | # compile a library only | |
7 | RULE=gslib | |
8 | ||
9 | # define common stuff | |
10 | ||
11 | # define library name | |
c98f0421 | 12 | LIB_TARGET=wx_serial_gtk |
9fdd8384 GL |
13 | LIB_MAJOR=2 |
14 | LIB_MINOR=0 | |
15 | # define library sources | |
16 | LIB_SRC=\ | |
17 | sermain.cpp sercore.cpp sergdi.cpp serwnd.cpp serctrl.cpp serext.cpp | |
18 | #define library objects | |
19 | LIB_OBJ=\ | |
20 | sermain.o sercore.o sergdi.o serwnd.o serctrl.o serext.o | |
21 | ||
22 | #additional things needed for compile | |
23 | ||
24 | # include the definitions now | |
25 | include ../../../template.mak | |
c98f0421 RR |
26 | |
27 | install:: | |
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 ; \ | |
33 | for f in *.h ; do \ | |
34 | rm -f /usr/local/include/wx_serial/$$f ; \ | |
35 | $(INSTALL_DATA) $$f /usr/local/include/wx_serial/$$f ; \ | |
36 | done | |
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 ; \ | |
42 | done | |
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 ; \ | |
48 | done |