############# MAKEFILE POUR MAKE DE BORLAND C++ COMPILER 5.5 ########### # ---------------------------------------------------------------------- # Parametrer le directory d'installation de l'ORB # Executer: "make /f Makefile.bcc clean" et "make /f Makefile.bcc" # ---------------------------------------------------------------------- ORB_HOME = C:\ORBacus BCC_HOME = C:\Borland\BCC55 # ---------------------------------------------------------------------- CXX = $(BCC_HOME)\bin\bcc32.exe CPPFLAGS = /DWIN32 -tWM -q -w -RT -v -Od -I$(BCC_HOME)\Include -I. -I$(ORB_HOME)\include # /DOB_CLEAR_MEM #RTL = cw32mti.lib import32.lib RTL = cw32mt.lib import32.lib LIBS = $(RTL) $(ORB_HOME)\lib\ob.lib $(ORB_HOME)\lib\jtc.lib $(ORB_HOME)\lib\CosNaming.lib #JTC=JThreads/C++ IDL = $(ORB_HOME)\bin\idl.exe LINK = $(BCC_HOME)\bin\ilink32.exe LINKFLAGS = /Gn /x /ap /L$(ORB_HOME)\lib /L$(BCC_HOME)\lib # ---------------------------------------------------------------------- SERVER_NAME = server.exe CLIENT_NAME = client.exe TARGETS = $(SERVER_NAME) $(CLIENT_NAME) COMMON_OBJS = Calculator.obj SERVER_OBJS = Calculator_skel.obj Calculator_impl.obj Server.obj CLIENT_OBJS = Client.obj all:: $(TARGETS) clean:: -@del *.exe *.obj *.bak *.flc *.pdb *.pch *.tds Calculator.h Calculator.cpp Calculator_skel.h Calculator_skel.cpp $(SERVER_NAME): $(COMMON_OBJS) $(SERVER_OBJS) -del $@ $(LINK) $(LINKFLAGS) c0x32.obj $**, $@, , $(COMMON_OBJS) $(SERVER_OBJS) $(LIBS) $(CLIENT_NAME): $(COMMON_OBJS) $(CLIENT_OBJS) -del $@ $(LINK) $(LINKFLAGS) c0x32.obj $**, $@, , $(COMMON_OBJS) $(CLIENT_OBJS) $(LIBS) # ---------------------------------------------------------------------- .SUFFIXES: .c .cc .cpp .obj .idl # regles implicites .cpp.obj: $(CXX) /c $(CPPFLAGS) $< .c.obj: $(CXX) /c $(CPPFLAGS) $< .idl.cpp: $(IDL) --no-type-codes $<