Always strip all the modules
[syslinux/sherbszt.git] / com32 / menu / Makefile
blobe62c6b8757dc6b5fb2eb25b78570e6da8316e677
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 MAKEDIR = $(topdir)/mk
19 include $(MAKEDIR)/elf.mk
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
29 all: $(MODULES) $(TESTFILES)
31 menu.elf : menu.o $(COMMONOBJS) $(C_LIBS)
32 $(LD) $(LDFLAGS) -o $@ $^
34 vesamenu.elf : vesamenu.o $(COMMONOBJS) $(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