############# MAKEFILE POUR NMAKE DE VISUAL C++ COMPILER ########### # ---------------------------------------------------------------------- # Parametrer le directory d'installation de l'ORB # ---------------------------------------------------------------------- ORB_HOME = C:\ORBacus # ---------------------------------------------------------------------- CXX = cl.exe CXXFLAGS = CXXCPP = cl.exe /nologo /E CPPFLAGS = /nologo /MD /W3 /GX /Gy /O1 /GR /DWIN32 /DNDEBUG /I. /I$(ORB_HOME)\include LIBS = $(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 = link.exe LINKFLAGS = /nologo /subsystem:console /incremental:no #/debug # ---------------------------------------------------------------------- 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 Calculator.h Calculator.cpp Calculator_skel.h Calculator_skel.cpp Calculator.ior $(SERVER_NAME): $(COMMON_OBJS) $(SERVER_OBJS) -del $@ $(LINK) $(LINKFLAGS) /out:$@ $(COMMON_OBJS) $(SERVER_OBJS) $(LIBS) $(CLIENT_NAME): $(COMMON_OBJS) $(CLIENT_OBJS) -del $@ $(LINK) $(LINKFLAGS) /out:$@ $(COMMON_OBJS) $(CLIENT_OBJS) $(LIBS) Calculator_skel.cpp Calculator_skel.h Calculator.cpp Calculator.h: Calculator.idl -del Calculator.cpp Calculator.h -del Calculator_skel.cpp Calculator_skel.h $(IDL) --no-type-codes Calculator.idl # ---------------------------------------------------------------------- .SUFFIXES: .c .cc .cpp .obj .cpp.obj:: $(CXX) /c $(CPPFLAGS) $< .cc.obj:: $(CXX) /c $(CPPFLAGS) /TP $<