2001-07-06 22:05:05 +00:00
|
|
|
#
|
|
|
|
# FreeLoader
|
2002-06-06 21:33:13 +00:00
|
|
|
# Copyright (C) 1998-2002 Brian Palmer <brianp@sginet.com>
|
2001-07-06 22:05:05 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2002-06-06 21:33:13 +00:00
|
|
|
#############################################
|
|
|
|
# PROGRAMS
|
|
|
|
#
|
|
|
|
CC = gcc
|
2003-08-29 18:54:17 +00:00
|
|
|
|
|
|
|
ifeq ($(HOST),mingw32-linux)
|
|
|
|
RM = rm -f
|
|
|
|
else
|
|
|
|
RM = cmd /C del
|
|
|
|
endif
|
2002-06-06 21:33:13 +00:00
|
|
|
|
|
|
|
#############################################
|
|
|
|
|
|
|
|
TOOLS = deptool \
|
2002-06-13 00:39:49 +00:00
|
|
|
bin2c \
|
|
|
|
hosttype \
|
|
|
|
rdel \
|
|
|
|
rcopy \
|
|
|
|
rmkdir \
|
|
|
|
rrmdir
|
2002-06-06 21:33:13 +00:00
|
|
|
|
|
|
|
#############################################
|
|
|
|
|
|
|
|
all : $(TOOLS)
|
2002-06-13 00:39:49 +00:00
|
|
|
@echo Tools are up to date.
|
|
|
|
|
|
|
|
% :: all
|
2001-07-06 22:05:05 +00:00
|
|
|
|
2002-06-06 21:33:13 +00:00
|
|
|
#############################################
|
2001-07-06 22:05:05 +00:00
|
|
|
|
2002-06-06 21:33:13 +00:00
|
|
|
%: %.c
|
|
|
|
@echo ===================================================== Compiling $*
|
|
|
|
@$(CC) -Wall -O3 -o $@ $<
|
2001-07-06 22:05:05 +00:00
|
|
|
|
2002-06-06 21:33:13 +00:00
|
|
|
#############################################
|
2001-07-06 22:05:05 +00:00
|
|
|
|
|
|
|
|
2002-06-06 21:33:13 +00:00
|
|
|
.PHONY : clean
|
2001-07-06 22:05:05 +00:00
|
|
|
clean:
|
2002-06-06 21:33:13 +00:00
|
|
|
@-$(RM) $(TOOLS)
|
|
|
|
@-$(RM) *.exe
|
|
|
|
@echo Clean ALL done.
|