# dload - Dot command for downloading files on the Spectrum Next
#
# Copyright (C) 2025  Ian Cowburn (ianc@noddybox.demon.co.uk)
#
# 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 3 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, see <http://www.gnu.org/licenses/>.
#
# -------------------------------------------------------------------------
#
# Makefile
#

dload: dload.c wifi.c wifi.h
	zcc +zxn -subtype=dot -create-app -o dload dload.c wifi.c

test: test.c wifi.c wifi.h
	$(CC) -g -o test test.c wifi.c

clean:
	rm -f dload dload_CODE.bin test

# If you use this, you'll almost certainly have to edit it
devinstall: dload
	hdfmonkey put $(shell cygpath $(USERPROFILE))/SpectrumNext/ZEsarUX_win-11.0/tbblue.mmc dload /dot

#vim: ai sw=4 ts=8 !expandtab