1 # GNU -*-Makefile-*- to build GNU make on Amiga
3 # Amiga overrides for use with Basic.mk.
5 # Copyright (C) 2017-2022 Free Software Foundation, Inc.
6 # This file is part of GNU Make.
8 # GNU Make is free software; you can redistribute it and/or modify it under
9 # the terms of the GNU General Public License as published by the Free Software
10 # Foundation; either version 3 of the License, or (at your option) any later
13 # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
14 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18 # You should have received a copy of the GNU General Public License along with
19 # this program. If not, see <https://www.gnu.org/licenses/>.
24 MKDIR.cmd = makedir $1
26 CP.cmd = copy $1 To $2
32 prog_SOURCES += $(alloca_SOURCES) $(loadavg_SOURCES) $(glob_SOURCES) $(amiga_SOURCES)
34 BUILT_SOURCES += $(lib)alloca.h $(lib)fnmatch.h $(lib)glob.h
36 extra_CPPFLAGS = IDir $(OUTDIR)src IDir $(SRCDIR)/src IDir $(OUTDIR)lib IDir $(SRCDIR)/lib
40 LDFLAGS = From LIB:cres.o
41 LDLIBS = Lib LIB:sc.lib LIB:amiga.lib
44 $(OUTDIR)src/config.h: $(SRCDIR)/src/config.ami