summaryrefslogtreecommitdiff
path: root/MCONFIG
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-29 17:53:42 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-29 17:53:42 -0700
commit0596155be3f9cc9d3eb385497ee79935c69ec042 (patch)
tree1f0eb238994dbb887504f1f8d630987c340ce92a /MCONFIG
parent448ff1d2d1e5052342312643d807040a9950e0f5 (diff)
downloadsyslinux-0596155be3f9cc9d3eb385497ee79935c69ec042.tar.gz
Centralize configurables; better "make install" etc
Begin the process of centralizing configurables. Improve "make install" and "make netinstall"; add "make extbootinstall".
Diffstat (limited to 'MCONFIG')
-rw-r--r--MCONFIG50
1 files changed, 50 insertions, 0 deletions
diff --git a/MCONFIG b/MCONFIG
new file mode 100644
index 00000000..09764c8c
--- /dev/null
+++ b/MCONFIG
@@ -0,0 +1,50 @@
+## -*- makefile -*- -------------------------------------------------------
+##
+## Copyright 2008 H. Peter Anvin - All Rights Reserved
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+## Boston MA 02110-1301, USA; either version 2 of the License, or
+## (at your option) any later version; incorporated herein by reference.
+##
+## -----------------------------------------------------------------------
+
+##
+## Common configurables
+##
+
+# No builtin rules
+MAKEFLAGS += -r
+MAKE += -r
+
+BINDIR = /usr/bin
+SBINDIR = /sbin
+LIBDIR = /usr/lib
+DATADIR = /usr/share
+AUXDIR = $(DATADIR)/syslinux
+MANDIR = /usr/man
+INCDIR = /usr/include
+TFTPBOOT = /tftpboot
+
+BOOTDIR = /boot
+EXTLINUXDIR = $(BOOTDIR)/extlinux
+
+NASM = nasm
+NASMOPT = -O9999
+
+PERL = perl
+
+CC = gcc
+TMPFILE := $(shell mktemp /tmp/gcc_ok.XXXXXX)
+gcc_ok = $(shell tmpf=$(TMPFILE); \
+ if $(CC) $(1) -c $(topdir)/dummy.c -o $$tmpf 2>/dev/null ; \
+ then echo '$(1)'; else echo '$(2)'; fi; \
+ rm -f $$tmpf)
+
+LD = ld
+OBJDUMP = objdump
+OBJCOPY = objcopy
+AR = ar
+NM = nm
+RANLIB = ranlib