Changeset 4336 for trunk/src


Ignore:
Timestamp:
Sep 28, 2000, 5:19:53 AM (25 years ago)
Author:
bird
Message:

New makefile style and Watcom.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dllentry/makefile

    r3031 r4336  
    1 # $Id: makefile,v 1.4 2000-03-06 23:38:35 bird Exp $
     1# $Id: makefile,v 1.5 2000-09-28 03:19:53 bird Exp $
    22
    33#
     
    77#
    88
    9 # Directory macros.
    10 PDWIN32_INCLUDE = ..\..\include
    11 PDWIN32_LIB     = ..\..\lib
    12 PDWIN32_BIN     = ..\..\$(OBJDIR)
    13 PDWIN32_TOOLS   = ..\..\tools\bin
     9
     10# For the time being
     11NEW_STYLE = 1
    1412
    1513
    16 # Compiler, tools, and interference rules.
    17 !include $(PDWIN32_INCLUDE)/pdwin32.mk
     14# We have our own rules
     15NO_ALL_RULE = 1
     16NO_LIB_RULE = 1
     17NO_DLL_RULE = 1
     18NO_LNK_RULE = 1
    1819
    1920
    20 # Flag overloads and local macros.
    21 CLEANEXTRAS = lz32rsrc.asm
     21#
     22# Compiler, tools, and interference rules.
     23#
     24!include ../../include/pdwin32.mk
    2225
    2326
     27#
    2428# Object files. All objects should be prefixed with $(OBJDIR)!
     29#
    2530OBJS = \
    2631$(OBJDIR)\dllentry.obj
    2732
    2833
     34#
    2935# Target name - name of the obj without extention and path.
     36#  NB. Watcom will need it's own target...
     37#
     38!ifndef WAT
    3039TARGET = dllentry
     40!else
     41TARGET = dllentry_watcom
     42!endif
    3143
    3244
     45#
    3346# All rule - build objs and copies obj to lib.
     47#
    3448all: $(OBJDIR) $(PDWIN32_LIB)\$(TARGET).obj
    3549
    3650
     51#
    3752# Lib rule - same as all.
     53#
    3854lib: all
    3955
     
    4157# Build objs and copies obj to lib.
    4258$(PDWIN32_LIB)\$(TARGET).obj: $(OBJS)
    43     $(CP) $(OBJS) $(PDWIN32_LIB)
     59    $(CP) $(OBJS) $@
    4460
    4561
    46 # Dep rule - makes depenencies for C, C++ and Asm files.
    47 dep:
    48     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    49         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    50 
    51 
     62#
    5263# Includes the common rules.
     64#
    5365!include $(PDWIN32_INCLUDE)/pdwin32.post
    5466
Note: See TracChangeset for help on using the changeset viewer.