Adding upstream version 4.00~pre61+dfsg.
[syslinux-debian/hramrach.git] / com32 / menu / Makefile
blob2a032728f909ab0799430fa1577169246913ee47
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., 51 Franklin St, Fifth Floor,
8 ## Boston MA 02110-1301, USA; either version 2 of the License, or
9 ## (at your option) any later version; incorporated herein by reference.
11 ## -----------------------------------------------------------------------
14 ## Simple menu system
17 topdir = ../..
18 include ../MCONFIG
20 LIBS = ../libutil/libutil_com.a ../lib/libcom32.a $(LIBGCC)
21 LNXLIBS = ../libutil/libutil_lnx.a
23 MODULES = menu.c32 vesamenu.c32
24 TESTFILES =
26 COMMONOBJS = menumain.o readconfig.o passwd.o drain.o printmsg.o colors.o \
27 background.o refstr.o execute.o
29 all: $(MODULES) $(TESTFILES)
31 menu.elf : menu.o $(COMMONOBJS) $(LIBS) $(C_LIBS)
32 $(LD) $(LDFLAGS) -o $@ $^
34 vesamenu.elf : vesamenu.o $(COMMONOBJS) $(LIBS) $(C_LIBS)
35 $(LD) $(LDFLAGS) -o $@ $^
37 tidy dist:
38 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
40 clean: tidy
41 rm -f *.lnx
43 spotless: clean
44 rm -f *.lss *.c32 *.com
45 rm -f *~ \#*
47 install:
49 -include .*.d