Changeset 1434


Ignore:
Timestamp:
Jun 8, 2004, 10:52:15 AM (16 years ago)
Author:
orlov
Message:
  • Improved makefiles.
Location:
to-imperative/trunk
Files:
3 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/Makefile

    r1429 r1434  
    7979
    8080install:: all
    81         mkdir -p -m 0755 $(INSTALL_DIR)
     81        mkdir -p -m 0755 $(INSTALL_DIR)/bin
     82        install -m 0755 rfp.sh $(INSTALL_DIR)/bin/
    8283
    8384clean::
  • to-imperative/trunk/configure

    r1429 r1434  
    5252    shift
    5353    if [ -z "$1" ]; then help; fi
    54     gmp_inc="-I$1"
     54    gmp_inc="-I'$1'"
    5555    ;;
    5656  -gmp_lib)
    5757    shift
    5858    if [ -z "$1" ]; then help; fi
    59     gmp_lib="-L$1"
     59    gmp_lib="-L'$1'"
    6060    ;;
    6161  -wflags)
     
    207207
    208208LDFLAGS += $gmp_lib
    209 #RF_LDFLAGS += -L${main_dir}/library -L${main_dir}/runtime
    210 #RF_LDFLAGS += -L${main_dir}/libp++
    211 #RF_LDLIBS += -lrf -lrfrt -lp++ -lsupc++ -lgmp
    212209LDLIBS += -lsupc++ -lgmp
    213210EOF
    214211
     212
     213cat >rfp.sh <<EOF
     214#!/bin/bash
     215
     216[ -z "\$cxx" ] && cxx="$cxx"
     217[ -z "\$rfpc" ] && rfpc="$install_dir/bin/rfpc"
     218
     219cflags="\$cflags -I'$install_dir/include' -I'$install_dir/include/rfrt'"
     220cflags="\$cflags -I'$install_dir/include/libp++' $gmp_inc"
     221cflags="\$cflags $wflags $dflags -DALL_INLINE $oflags -c"
     222ldflags="\$ldflags -L'$install_dir/lib' $gmp_lib"
     223ldlibs="\$ldlibs -lrf -lrfrt -lp++ -lsupc++ -lgmp"
     224EOF
     225
     226cat >>rfp.sh <rfp.in
     227
  • to-imperative/trunk/libp++/Makefile

    r1429 r1434  
    5454        mkdir -p -m 0755 $(INSTALL_DIR)/lib
    5555        install -m 0644 $(LIBPXX) $(INSTALL_DIR)/lib/
     56        mkdir -p -m 0755 $(INSTALL_DIR)/include/libp++
     57        $(foreach f, $(PXX_HEADERS) $(PXX_IHEADERS) $(PXX_AHEADERS), \
     58                install -m 0644 $(f) $(INSTALL_DIR)/include/libp++/ ; )
    5659
    5760uninstall:: all
  • to-imperative/trunk/library/Makefile

    r1429 r1434  
     1TOPDIR = ..
     2
     3include $(TOPDIR)/rules.mk
     4
    15SUBDIRS = \
    26  Access \
     
    1519  Bit
    1620
    17 TOPDIR = ..
    18 
    19 include $(TOPDIR)/rules.mk
     21RF_HEADERS = $(SUBDIRS:=.rfi)
     22CPP_HEADERS = $(SUBDIRS:=.hh)
     23CPP_HEADERS += $(foreach d, $(SUBDIRS), $(shell echo $(d) | tr A-Z a-z).hh)
    2024
    2125lists = $(addsuffix /module.list, $(SUBDIRS))
     
    3640        install -m 0644 $(LIBRF) $(INSTALL_DIR)/lib/
    3741        mkdir -p -m 0755 $(INSTALL_DIR)/include/refal-plus
    38         install -m 0644 include/refal-plus/*.rfi $(INSTALL_DIR)/include/refal-plus/
     42        $(foreach f, $(RF_HEADERS), \
     43                install -m 0644 include/refal-plus/$(f) \
     44                                $(INSTALL_DIR)/include/refal-plus/ ; \
     45                ln -sf $(INSTALL_DIR)/include/refal-plus/$(f) \
     46                       $(INSTALL_DIR)/include/refal-plus/$(shell echo $(f) | tr A-Z a-z) ; )
     47        mkdir -p -m 0755 $(INSTALL_DIR)/include/refal
     48        $(foreach f, $(CPP_HEADERS), \
     49                install -m 0644 include/refal/$(f) \
     50                                $(INSTALL_DIR)/include/refal/ ; )
    3951
  • to-imperative/trunk/runtime/Makefile

    r1429 r1434  
    3131RFRT_SOURCES = $(RFRT_MODULES:=.cc)
    3232RFRT_HEADERS = $(RFRT_MODULES:=.hh)
    33 #RFRT_IHEADERS = $(RFRT_MODULES:=.ih)
     33RFRT_IHEADERS = $(RFRT_MODULES:=.ih)
    3434RFRT_OBJECTS = $(RFRT_MODULES:=.o)
    3535
     
    4343DISTFILES += $(ALL_SOURCES)
    4444DISTFILES += $(RFRT_HEADERS)
     45DISTFILES += $(RFRT_IHEADERS)
    4546
    4647all:: $(LIBRFRT)
     
    5455        mkdir -p -m 0755 $(INSTALL_DIR)/lib
    5556        install -m 0644 $(LIBRFRT) $(INSTALL_DIR)/lib/
     57        mkdir -p -m 0755 $(INSTALL_DIR)/include/rfrt
     58        $(foreach f, $(RFRT_HEADERS) $(RFRT_IHEADERS), \
     59                [ -f $(f) ] && install -m 0644 $(f) $(INSTALL_DIR)/include/rfrt/ ; )
    5660
    5761uninstall:: all
Note: See TracChangeset for help on using the changeset viewer.