2a032728f909ab0799430fa1577169246913ee47
[external/syslinux.git] / com32 / menu / Makefile
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.
10 ##
11 ## -----------------------------------------------------------------------
12
13 ##
14 ## Simple menu system
15 ##
16
17 topdir = ../..
18 include ../MCONFIG
19
20 LIBS       = ../libutil/libutil_com.a ../lib/libcom32.a $(LIBGCC)
21 LNXLIBS    = ../libutil/libutil_lnx.a
22
23 MODULES   = menu.c32 vesamenu.c32
24 TESTFILES =
25
26 COMMONOBJS = menumain.o readconfig.o passwd.o drain.o printmsg.o colors.o \
27         background.o refstr.o execute.o
28
29 all: $(MODULES) $(TESTFILES)
30
31 menu.elf : menu.o $(COMMONOBJS) $(LIBS) $(C_LIBS)
32         $(LD) $(LDFLAGS) -o $@ $^
33
34 vesamenu.elf : vesamenu.o $(COMMONOBJS) $(LIBS) $(C_LIBS)
35         $(LD) $(LDFLAGS) -o $@ $^
36
37 tidy dist:
38         rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
39
40 clean: tidy
41         rm -f *.lnx
42
43 spotless: clean
44         rm -f *.lss *.c32 *.com
45         rm -f *~ \#*
46
47 install:
48
49 -include .*.d