| 1 | # $Id: $# $Id: $
 | 
|---|
| 2 | ## @file
 | 
|---|
| 3 | #
 | 
|---|
| 4 | # kBuild Makefile for the kLdr.
 | 
|---|
| 5 | #
 | 
|---|
| 6 | # Copyright (c) 2006 knut st. osmundsen <bird@anduin.net>
 | 
|---|
| 7 | #
 | 
|---|
| 8 | #
 | 
|---|
| 9 | # This file is part of kLdr.
 | 
|---|
| 10 | #
 | 
|---|
| 11 | # kLdr is free software; you can redistribute it and/or modify
 | 
|---|
| 12 | # it under the terms of the GNU General Public License as published by
 | 
|---|
| 13 | # the Free Software Foundation; either version 2 of the License, or
 | 
|---|
| 14 | # (at your option) any later version.
 | 
|---|
| 15 | #
 | 
|---|
| 16 | # kLdr is distributed in the hope that it will be useful,
 | 
|---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
|---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
|---|
| 19 | # GNU General Public License for more details.
 | 
|---|
| 20 | #
 | 
|---|
| 21 | # You should have received a copy of the GNU General Public License
 | 
|---|
| 22 | # along with kLdr; if not, write to the Free Software
 | 
|---|
| 23 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 | 
|---|
| 24 | #
 | 
|---|
| 25 | #
 | 
|---|
| 26 | 
 | 
|---|
| 27 | 
 | 
|---|
| 28 | #
 | 
|---|
| 29 | # The kLDr DLL.
 | 
|---|
| 30 | #               
 | 
|---|
| 31 | DLLS = kLdr
 | 
|---|
| 32 | kLdr_TOOL = GCC3OMF
 | 
|---|
| 33 | kLdr_ASTOOL = NASM
 | 
|---|
| 34 | kLdr_ASFLAGS = -f obj
 | 
|---|
| 35 | kLdr_CFLAGS = -Wall -pedantic
 | 
|---|
| 36 | kLdr_LDFLAGS = -nostdlib
 | 
|---|
| 37 | kLdr_LIBS = os2 gcc end
 | 
|---|
| 38 | kLdr_SOURCES = \
 | 
|---|
| 39 |         kLdr.c \
 | 
|---|
| 40 |         kLdrLX.c
 | 
|---|
| 41 | kLdr_SOURCES.os2 = \
 | 
|---|
| 42 |         kLdr-os2.def \
 | 
|---|
| 43 |         kLdrA-os2.asm
 | 
|---|
| 44 | 
 | 
|---|
| 45 | #
 | 
|---|
| 46 | # The OS/2 stub program.
 | 
|---|
| 47 | #               
 | 
|---|
| 48 | PROGRAMS = kLdrExeStub-os2      
 | 
|---|
| 49 | kLdrExeStub-os2_TOOL = GCC3OMF
 | 
|---|
| 50 | kLdrExeStub-os2_ASTOOL = NASM
 | 
|---|
| 51 | kLdrExeStub-os2_ASFLAGS = -f obj
 | 
|---|
| 52 | kLdrExeStub-os2_LDFLAGS = -nostdlib
 | 
|---|
| 53 | kLdrExeStub-os2_LIBS = $(TARGET_kLdr)
 | 
|---|
| 54 | kLdrExeStub-os2_SOURCES = kLdrExeStub-os2.asm
 | 
|---|
| 55 |         
 | 
|---|
| 56 | ##
 | 
|---|
| 57 | ## The (stub) utility.
 | 
|---|
| 58 | ##      
 | 
|---|
| 59 | #PROGRAMS = kLdrUtil
 | 
|---|
| 60 |         
 | 
|---|
| 61 | 
 | 
|---|
| 62 | # generate rules.
 | 
|---|
| 63 | DEPTH = ..
 | 
|---|
| 64 | include $(PATH_KBUILD)/rules.kmk
 | 
|---|
| 65 | 
 | 
|---|