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/dllentry/makefile

    r2712 r3031  
    1 # $Id: makefile,v 1.3 2000-02-09 23:46:55 bird Exp $
     1# $Id: makefile,v 1.4 2000-03-06 23:38:35 bird Exp $
    22
    33#
    4 # PD-Win32 API
     4# Odin32 API
    55#
    66#       dllentry library makefile
    77#
    88
     9# Directory macros.
    910PDWIN32_INCLUDE = ..\..\include
    10 PDWIN32_LIB = ..\..\lib
    11 PDWIN32_BIN = ..\..\bin
    12 PDWIN32_TOOLS = ..\..\tools\bin
     11PDWIN32_LIB     = ..\..\lib
     12PDWIN32_BIN     = ..\..\$(OBJDIR)
     13PDWIN32_TOOLS   = ..\..\tools\bin
    1314
     15
     16# Compiler, tools, and interference rules.
    1417!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1518
    1619
    17 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)
    18 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
     20# Flag overloads and local macros.
     21CLEANEXTRAS = lz32rsrc.asm
    1922
    2023
     24# Object files. All objects should be prefixed with $(OBJDIR)!
     25OBJS = \
     26$(OBJDIR)\dllentry.obj
     27
     28
     29# Target name - name of the obj without extention and path.
    2130TARGET = dllentry
    2231
    23 all: $(PDWIN32_LIB)\$(TARGET).obj
    2432
    25 $(PDWIN32_LIB)\$(TARGET).obj: dllentry.obj
    26     $(CP) $(TARGET).obj $(PDWIN32_LIB)
     33# All rule - build objs and copies obj to lib.
     34all: $(OBJDIR) $(PDWIN32_LIB)\$(TARGET).obj
    2735
    28 lib: $(PDWIN32_LIB)\$(TARGET).obj
    2936
     37# Lib rule - same as all.
     38lib: all
     39
     40
     41# Build objs and copies obj to lib.
     42$(PDWIN32_LIB)\$(TARGET).obj: $(OBJS)
     43    $(CP) $(OBJS) $(PDWIN32_LIB)
     44
     45
     46# Dep rule - makes depenencies for C, C++ and Asm files.
    3047dep:
    3148    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    3249        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    3350
    34 !ifndef NODEP
    35 !include .depend
    36 !endif
    3751
     52# Includes the common rules.
     53!include $(PDWIN32_INCLUDE)/pdwin32.post
    3854
    39 clean:
    40     $(RM) *.obj $(PDWIN32_LIB)\$(TARGET).obj *.pch
    41 
Note: See TracChangeset for help on using the changeset viewer.