1 ## -----------------------------------------------------------------------
3 ## Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
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 ## -----------------------------------------------------------------------
20 LIBS
= ..
/libutil
/libutil_com.a ..
/lib
/libcom32.a
$(LIBGCC
)
21 LNXLIBS
= ..
/libutil
/libutil_lnx.a
23 MODULES
= menu.c32 vesamenu.c32
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
$@
$^
38 rm -f
*.o
*.lo
*.a
*.lst
*.elf .
*.d
*.tmp
44 rm -f
*.lss
*.c32
*.com