VirtualBox

source: kBuild/trunk/src/kmk/kMk-emx.mak@ 151

Last change on this file since 151 was 46, checked in by bird, 22 years ago

kMk changes. Made extensions configurable from config.h. fixed parents.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1# @(#)Makefile 5.2 (Berkeley) 12/28/90
2# $FreeBSD: src/usr.bin/make/Makefile,v 1.13.2.1 2001/05/25 08:33:40 sobomax Exp $
3
4CC = gcc
5CC = gcc -Zomf
6CFLAGS = -g -I. -I./include -I../kLib/Generic/include \
7# -DUSE_KLIB \
8 -Dregister= \
9 -DKMK \
10# -DNMAKE \
11 -DOS2 -D__i386__ -D__32BIT__ -DMACHINE=\"ibmos2\" -DMACHINE_ARCH=\"x86\" -DMACHINE_CPU=\"386\" \
12
13OBJDIR=obj.ke
14
15LSTOBJS=\
16$(OBJDIR)\lstAppend.o \
17$(OBJDIR)\lstAtEnd.o \
18$(OBJDIR)\lstAtFront.o \
19$(OBJDIR)\lstClose.o \
20$(OBJDIR)\lstConcat.o \
21$(OBJDIR)\lstDatum.o \
22$(OBJDIR)\lstDeQueue.o \
23$(OBJDIR)\lstDestroy.o \
24$(OBJDIR)\lstDupl.o \
25$(OBJDIR)\lstEnQueue.o \
26$(OBJDIR)\lstFind.o \
27$(OBJDIR)\lstFindFrom.o \
28$(OBJDIR)\lstFirst.o \
29$(OBJDIR)\lstForEach.o \
30$(OBJDIR)\lstForEachFrom.o \
31$(OBJDIR)\lstInit.o \
32$(OBJDIR)\lstInsert.o \
33$(OBJDIR)\lstIsAtEnd.o \
34$(OBJDIR)\lstIsEmpty.o \
35$(OBJDIR)\lstLast.o \
36$(OBJDIR)\lstMember.o \
37$(OBJDIR)\lstNext.o \
38$(OBJDIR)\lstOpen.o \
39$(OBJDIR)\lstRemove.o \
40$(OBJDIR)\lstReplace.o \
41$(OBJDIR)\lstSucc.o
42
43BASEOBJS=\
44$(OBJDIR)\arch.o\
45$(OBJDIR)\buf.o\
46$(OBJDIR)\compat.o\
47$(OBJDIR)\cond.o\
48$(OBJDIR)\dir.o\
49$(OBJDIR)\for.o\
50$(OBJDIR)\hash.o\
51$(OBJDIR)\job.o\
52$(OBJDIR)\main.o\
53$(OBJDIR)\make.o\
54$(OBJDIR)\parse.o\
55$(OBJDIR)\str.o\
56$(OBJDIR)\suff.o\
57$(OBJDIR)\targ.o\
58$(OBJDIR)\var.o\
59$(OBJDIR)\util.o\
60$(OBJDIR)\helpers.o\
61
62INCOBJS=\
63$(OBJDIR)\dirent.o\
64
65
66all: kmk.exe
67
68kmk.exe: $(BASEOBJS) $(LSTOBJS) $(INCOBJS)
69 $(CC) $(CFLAGS) -Zmap $** -o $@ -lregex
70
71$(LSTOBJS): lst.lib\$(@B).c list.h lst.h
72 @if not exist $(OBJDIR) mkdir $(OBJDIR)
73 $(CC) -c $(CFLAGS) -o $(OBJDIR)/$(@F) lst.lib/$(@B).c
74
75$(BASEOBJS): $(@B).c list.h lst.h make.h
76 @if not exist $(OBJDIR) mkdir $(OBJDIR)
77 $(CC) -c $(CFLAGS) -o $(OBJDIR)/$(@F) $(@B).c
78
79$(INCOBJS): include\$(@B).c list.h lst.h make.h
80 @if not exist $(OBJDIR) mkdir $(OBJDIR)
81 $(CC) -c $(CFLAGS) -o $(OBJDIR)/$(@F) include/$(@B).c
82
83
84#
85#PROG= make
86#CFLAGS+= -I${.CURDIR}
87#SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
88# make.c parse.c str.c suff.c targ.c var.c util.c
89#SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
90# lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
91# lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
92# lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
93# lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
94#.PATH: ${.CURDIR}/lst.lib
95
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette