Ignore:
Timestamp:
2001-01-26T07:26:45+13:00 (23 years ago)
Author:
cs025
Message:

Included CORBA branch for first time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/Makefile.in

    r1283 r1860  
    2828AR = ar
    2929CC = @CC@
     30CPP = @CXX@
    3031#CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
    3132CCFLAGS = @CFLAGS@
     33MCFLAGS = @CFLAGS@ -Wall -Wunused
    3234DEFS = @DEFS@
    33 INCLUDES = -I../packages/mg/lib
     35INCLUDES = -I../packages/mg/lib -I..
     36MICO_DIR = @MICO_DIR@
     37ifeq ($(MICO_DIR), default)
     38MICO_INC = -I../packages/mico/include
     39else
     40ifeq ($(MICO_DIR), yes)
     41MICO_INC =
     42else
     43MICO_INC = -I$(MICO_DIR)
     44endif
     45endif
     46MINCLUDES = -I. -I../packages/mg/lib $(MICO_INC) -I..
    3447RANLIB = @RANLIB@
     48USE_CORBA = @USE_CORBA@
    3549
    3650COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
     51CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
     52
     53ifneq ($(USE_CORBA), 0)
     54MCOMPILE = mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
     55else
     56MCOMPILE = $(COMPILE)
     57endif
    3758
    3859.SUFFIXES:
     
    4364.SUFFIXES: .cpp .o
    4465.cpp.o:
    45     $(COMPILE) $<
     66    $(CPPCOMPILE) $<
     67
     68.SUFFIXES: .mpp .o
     69.mpp.o:
     70    $(MCOMPILE) $<
    4671
    4772
     73ifneq ($(USE_CORBA), 0)
     74CORBAHEADERS = \
     75  corbaconv_text_t.h corbatext_t.h
     76CORBASOURCES = \
     77  corbaiface.mpp    corbatext_t.mpp  corbaconv_text_t.mpp
     78CORBAOBJECTS = \
     79  corbaiface.o      corbatext_t.o    corbaconv_text_t.o
     80else
     81CORBAHEADERS =
     82CORBASOURCE =
     83CORBAOBJECTS =
     84endif
     85
    4886HEADERS = \
    49   cfgread.h      fileutil.h     gsdlunicode.h  text_t.h \
    50   display.h      gsdlconf.h     gsdltimes.h    gsdltools.h
     87  cfgread.h      fileutil.h     gsdlunicode.h  gsdltools.h text_t.h \
     88  display.h      gsdlconf.h     gsdltimes.h    cnfgable.h  cnfgator.h \
     89  $(CORBAHEADERS)
     90
    5191
    5292SOURCES = \
    53   cfgread.cpp      fileutil.cpp     text_t.cpp \
    54   display.cpp      gsdlunicode.cpp  gsdltimes.cpp  gsdltools.cpp
     93  cfgread.cpp      fileutil.cpp     text_t.cpp     cnfgable.cpp \
     94  display.cpp      gsdlunicode.cpp  gsdltimes.cpp  gsdltools.cpp \
     95  cnfgator.cpp     $(CORBASOURCES)
    5596
    5697OBJECTS = \
    57   cfgread.o        fileutil.o       text_t.o   \
    58   display.o        gsdlunicode.o    gsdltimes.o  gsdltools.o
     98  cfgread.o        fileutil.o       text_t.o     cnfgable.o \
     99  display.o        gsdlunicode.o    gsdltimes.o  gsdltools.o \
     100  cnfgator.o       $(CORBAOBJECTS)
    59101
    60102
    61103all: gsdllib.a
    62104
     105corbaiface.mpp: corbaiface.idl
     106    idl --c++-suffix=mpp $?
    63107
    64108GSDLLIBOBJECTS = $(OBJECTS)
     
    69113    $(RANLIB) gsdllib.a
    70114
    71 distclean:
    72     rm -f $(OBJECTS) gsdllib.a Makefile
    73 
    74115clean:
    75116    rm -f $(OBJECTS) gsdllib.a
     
    79120depend:
    80121    makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
     122
     123
     124
     125
Note: See TracChangeset for help on using the changeset viewer.