# $Id: Xx2Lx.mak,v 1.1 2001-03-11 16:37:17 bird Exp $ # # Odin32 API # # xx2lx.exe makefile # # # Tell buildenvironment that we're making an vio exe and to invoke additional dep rule # VIO=1 EXETARGET=1 # # Compiler, tools, and interference rules thru the win32k makefile.inc file. # !include ..\..\makefile.inc !include makefile.inc # # Sanity check # !ifndef WIN32KINCLUDE !error "Fatal error! WIN32KINCLUDE is undefined!" !endif # # Tools and Flags Addjustments # CINCLUDES = -I$(WIN32KINCLUDE) $(CINCLUDES) CDEFINES = $(CDEFINES) -DRING3 -DXX2LX !if "$(VAC3)" == "1" || "$(VAC36)" == "1" CFLAGS = $(CFLAGS) -Ge+ -Gm- -Gn- -Ti+ -Rn -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- CXXFLAGS = $(CXXFLAGS) -Ge+ -Gm- -Gn- -Ti+ -Rn -Gx -Wall+ppt-ppc-inl-cnv-gnr-vft- CLISTING = -Fa$(OBJDIR)\$(@B).s COBJOUT = -Fo$(OBJDIR)\$(@B).obj LD2FLAGS = $(LD2FLAGS) /A:16 /Stack:4096 !else !error "Compiler is not yet supported." !endif # # Interference rules. # !if "$(VAC3)" == "1" || "$(VAC36)" == "1" {$(WIN32KMISC)}.c.obj: @echo compiling: $(@B).c @$(CC) $(CFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $< {$(WIN32KMISC)}.cpp.obj: @echo compiling: $(@B).cpp @$(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $< {$(WIN32KLDR)}.cpp.obj: @echo compiling: $(@B).cpp @$(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $< {$(WIN32KPE2LX)}.cpp{$(OBJDIR)}.obj: @echo compiling: $(@B).cpp @$(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $< {$(WIN32KELF2LX)}.cpp{$(OBJDIR)}.obj: @echo compiling: $(@B).cpp @$(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $< !else !error "Compiler is not yet supported." !endif # # Object files. Prefix with OBJDIR and one space before the '\'. # OBJS =\ $(OBJDIR)\xx2lxmain.obj\ $(OBJDIR)\modulebase.obj\ $(OBJDIR)\pe2lx.obj\ $(OBJDIR)\elf2lx.obj\ $(OBJDIR)\malloc.obj\ $(OBJDIR)\smalloc_avl.obj\ $(OBJDIR)\avl.obj\ $(OBJDIR)\rmalloc_avl.obj\ $(OBJDIR)\new.obj\ $(OBJDIR)\stricmp.obj\ $(OBJDIR)\vprintf.obj # # Libraries. One space before the '\'. # LIBS = \ $(RTLLIB_NRE) \ os2386.lib # # Target name - name of the exe without extention and path. # TARGET = xx2lx # # Includes the common rules. # !include $(ODIN32_POST_INC)