syslinux/linux/Makefile
<<
>>
Prefs
   1## -----------------------------------------------------------------------
   2##
   3##   Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
   4##
   5##   This program is free software; you can redistribute it and/or modify
   6##   it under the terms of the GNU General Public License as published by
   7##   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
   8##   Boston MA 02111-1307, USA; either version 2 of the License, or
   9##   (at your option) any later version; incorporated herein by reference.
  10##
  11## -----------------------------------------------------------------------
  12
  13##
  14## Linux FAT installer
  15##
  16
  17topdir = ..
  18include $(topdir)/MCONFIG
  19
  20OPTFLAGS = -g -O0 -Dalloca=malloc
  21INCLUDES = -I. -I.. -I../libinstaller
  22CFLAGS   = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
  23LDFLAGS  = 
  24
  25SRCS     = syslinux.c \
  26           ../libinstaller/syslxopt.c \
  27           ../libinstaller/syslxcom.c \
  28           ../libinstaller/setadv.c \
  29           ../libinstaller/advio.c \
  30           ../libinstaller/fat.c \
  31           ../libinstaller/syslxmod.c \
  32           ../libinstaller/bootsect_bin.c \
  33           ../libinstaller/ldlinux_bin.c
  34OBJS     = $(patsubst %.c,%.o,$(notdir $(SRCS)))
  35
  36.SUFFIXES: .c .o .i .s .S
  37
  38VPATH = .:../libinstaller
  39
  40all: installer
  41
  42tidy dist:
  43        -rm -f *.o *.i *.s *.a .*.d *.tmp
  44
  45clean: tidy
  46        -rm -f syslinux syslinux-nomtools
  47
  48spotless: clean
  49        -rm -f *~
  50
  51installer: syslinux syslinux-nomtools
  52
  53syslinux: $(OBJS)
  54        $(CC) $(LDFLAGS) -o $@ $^
  55
  56syslinux-nomtools: syslinux
  57        ln -f $< $@
  58
  59%.o: %.c
  60        $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
  61%.i: %.c
  62        $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
  63%.s: %.c
  64        $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
  65
  66-include .*.d *.tmp
  67
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.