Changeset 3031 for trunk/src/peldr


Ignore:
Timestamp:
Mar 7, 2000, 12:39:20 AM (26 years ago)
Author:
bird
Message:

Makefiles are updated to new style.
Odin32 resource files are renamed to *.orc and most have changed name to avoid
name clashes for object files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/peldr/makefile

    r2712 r3031  
    1 # $Id: makefile,v 1.14 2000-02-09 23:47:01 bird Exp $
     1# $Id: makefile,v 1.15 2000-03-06 23:38:55 bird Exp $
    22
    33#
     
    77#
    88
     9# Tell that we're producing an executable
     10EXETARGET = 1
     11
     12# Directory macros.
    913PDWIN32_INCLUDE = ..\..\include
    10 PDWIN32_LIB = ..\..\lib
    11 PDWIN32_BIN = ..\..\bin
    12 PDWIN32_TOOLS = ..\..\tools\bin
     14PDWIN32_LIB     = ..\..\lib
     15PDWIN32_BIN     = ..\..\$(OBJDIR)
     16PDWIN32_TOOLS   = ..\..\tools\bin
    1317
     18
     19# Compiler, tools, and interference rules.
    1420!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1521
    16 CFLAGS   = $(CFLAGS) /Ge+ -I$(PDWIN32_INCLUDE) -Gn-
    17 CXXFLAGS = $(CXXFLAGS) /Ge+ -I$(PDWIN32_INCLUDE) -Gn-
    18 LDFLAGS  = $(LDFLAGS_ODINCRT) /Ge+ /B"/pmtype:pm /stack:0x100000 /NOBASE /Map" \
    19            os2386.lib
     22
     23# Flag overloads and local macros.
     24CLEANEXTRAS = $(PDWIN32_BIN)\$(TARGET).exe
    2025
    2126
     27# Object files. All objects should be prefixed with $(OBJDIR)!
     28OBJS = $(OBJDIR)\pe.obj
     29
     30
     31# Target name - name of the dll without extention and path.
    2232TARGET = pe
    2333
    24 OBJS =  pe.obj
    2534
    26 all: $(TARGET).exe
     35# All rule - build objs, target dll, copies dll to bin and makes libs.
     36all:    $(OBJDIR) \
     37        $(OBJDIR)\$(TARGET).exe \
     38        $(PDWIN32_BIN)\$(TARGET).exe
    2739
    2840
    29 $(TARGET).exe: $(OBJS) makefile
    30     $(LD) $(LDFLAGS) -Fe$@ $(OBJS)
    31     $(CP) $(TARGET).exe $(PDWIN32_BIN)
    32     $(CP) $@ $(PDWIN32_BIN)
     41# Lib rule - dummy rule.
     42lib:
    3343
    3444
     45# Exe rule - builds the target exe.
     46$(OBJDIR)\$(TARGET).exe: $(OBJS) $(OBJDIR)\$(TARGET).lrf
     47    $(LD2) $(LD2FLAGS_ODINCRT) @$(OBJDIR)\$(TARGET).lrf
     48
     49
     50# Linker file - creates the parameter file passed on to the linker.
     51$(OBJDIR)\$(TARGET).lrf: makefile
     52    @echo Creating file <<$@
     53/OUT:$(OBJDIR)\$(TARGET).exe
     54/MAP:$(OBJDIR)\$(TARGET).map
     55/PMTYPE:pm
     56/STACK:0x100000
     57/NOBASE
     58$(OBJS)
     59os2386.lib
     60<<keep
     61
     62
     63# Dep rule - makes depenencies for C, C++ and Asm files.
    3564dep:
    3665    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    3766        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    3867
    39 !ifndef NODEP
    40 !include .depend
    41 !endif
    4268
     69# Includes the common rules.
     70!include $(PDWIN32_INCLUDE)/pdwin32.post
    4371
    44 clean:
    45     $(RM) *.obj *.lib *.dll *.map *.pch *.exe \
    46         $(PDWIN32_BIN)\$(TARGET).exe
    47 
Note: See TracChangeset for help on using the changeset viewer.