1#
2# This makefile builds the necessary files for a binary release
3#
4# The environment variable ARCH must be set to indicate the machine
5# architecture
6#
7
8CP = /bin/cp
9RM = /bin/rm -f
10CHMOD = /bin/chmod
11INCLUDE_DIR = $(USC_DIR)/include
12LIB_DIR = $(USC_DIR)/lib/$(ARCH)
13#INCLUDE_DIR = ../$(USC_DIR)/include
14#LIB_DIR = ../../$(USC_DIR)/lib/$(ARCH)
15
16
17install: global_install
18
19local_install:
20	cd $(ARCH) && ./configure && $(MAKE) clean
21	cd $(ARCH) && $(MAKE) install
22
23global_install: local_install
24	-(cd  ../sys_include && $(RM) `/bin/ls $(INCLUDE_DIR)`)
25	$(CP) include/* ../sys_include
26	cd ../sys_include && $(CHMOD) 664 `/bin/ls $(INCLUDE_DIR)`
27	-(cd ../sys_lib/$(ARCH) && $(RM) `/bin/ls $(LIB_DIR)`)
28	$(CP) lib/$(ARCH)/* ../sys_lib/$(ARCH)
29	cd ../sys_lib/$(ARCH) && $(CHMOD) 664 `/bin/ls $(LIB_DIR)`
30
31