source: branches/development/src/win32k/rexx/makefile

Last change on this file was 3650, checked in by bird, 25 years ago

Rewrote kRx.c in assembly!

File size: 2.9 KB
Line 
1##############################################################################
2# $Id: makefile,v 1.2 2000-06-03 03:50:46 bird Exp $
3#
4# PD-Win32 API
5#
6# kRx.exe makefile
7#
8##############################################################################
9
10##############################################################################
11# Include
12##############################################################################
13EXETARGET=1
14!include ..\makefile.inc
15!include $(PDWIN32_INCLUDE)\pdwin32.mk
16
17##############################################################################
18# Tools and Flags Addjustments
19##############################################################################
20CINCLUDES = -I$(WIN32KINCLUDE)
21
22CFLAGS = $(CINCLUDES) $(CFLAGS) \
23 -Ge+ -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- -Gm- -Gn- -Ti+ -Rn
24CXXFLAGS = $(CINCLUDES) $(CXXFLAGS) \
25 -Ge+ -Wall+ppt-ppc-inl-cnv-gnr-vft- -Gm- -Gn- -Ti+ -Gx -Rn
26
27LD = ilink
28LDFLAGS = /nologo /NOI /A:16 /NOE /packcode /packdata /pmtype:vio /Stack:0x10000 \
29!ifdef DEBUG
30!ifndef NODEBUGINFO
31 /debug /dbgpack
32!endif
33!else
34 /exepack:2
35!endif
36
37
38##############################################################################
39# Interference rules. Note: -Fo is IBMCPP specific.
40##############################################################################
41.c{$(OBJDIR)}.obj:
42 @echo compiling: $(@B).c
43 @$(CC) $(CFLAGS) -c -Fa$(WIN32KLIST)\$(@B).asm -Fo$(OBJDIR)\$(@B).obj $<
44
45.cpp{$(OBJDIR)}.obj:
46 @echo compiling: $(@B).cpp
47 @$(CXX) $(CXXFLAGS) -c -Fa$(WIN32KLIST)\$(@B).asm -Fo$(@) $<
48
49.asm{$(OBJDIR)}.obj:
50 @$(ECHO) assembling: $<
51 @$(AS) $(ASFLAGS) $(ADEFINES) $(AINCLUDES) $< -Fo:$@ -Fl:$(WIN32KLIST)\$(*B).lst
52
53#
54# Visual slick edit!
55#
56.c.obj:
57 @echo compiling: $(@B).c
58 @$(CC) $(CFLAGS) -c -Fa$(WIN32KLIST)\$(@B).asm -Fo$(OBJDIR)\$(@B).obj $<
59
60.cpp.obj:
61 @echo compiling: $(@B).cpp
62 @$(CXX) $(CXXFLAGS) -c -Fa$(WIN32KLIST)\$(@B).asm -Fo$(OBJDIR)\$(@B).obj $<
63
64
65##############################################################################
66# Main targets.
67##############################################################################
68TARGET = kRx
69
70OBJS = $(OBJDIR)\kRxa.obj
71
72
73all: $(OBJDIR) \
74 $(OBJDIR)\$(TARGET).exe
75
76
77$(OBJDIR)\$(TARGET).exe: $(OBJS) $(TARGET).def
78 @echo linking $@
79 -4 $(LD) $(LDFLAGS) /BASE:0x10000 /OUT:$@ /MAP:$*.map $** OS2386.lib REXX.lib
80 $(CP) $@ $(PDWIN32_BIN)
81
82$(OBJDIR)\$(TARGET)c.exe: $(OBJDIR)\kRx.obj $(TARGET).def
83 @echo linking $@
84 $(LD) $(LDFLAGS) /BASE:0x10000 /OUT:$@ /MAP:$*.map $** OS2386.lib REXX.lib
85 $(CP) $@ $(PDWIN32_BIN)
86
87
88
89##############################################################################
90# Dependencies.
91##############################################################################
92dep:
93 $(DEPEND) -o$$(OBJDIR) $(CINCLUDES) *.c *.cpp *.h
94
95
96
97# Includes the common rules.
98!include $(PDWIN32_INCLUDE)\pdwin32.post
Note: See TracBrowser for help on using the repository browser.