| 1 |
# GNU -*-Makefile-*- to build GNU Make on Amiga |
| 2 |
# |
| 3 |
# Amiga overrides for use with Basic.mk. |
| 4 |
# |
| 5 |
# Copyright (C) 2017-2023 Free Software Foundation, Inc. |
| 6 |
# This file is part of GNU Make. |
| 7 |
# |
| 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 |
| 11 |
# version. |
| 12 |
# |
| 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 |
| 16 |
# details. |
| 17 |
# |
| 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/>. |
| 20 |
|
| 21 |
CC = sc |
| 22 |
LD = $(CC) Link |
| 23 |
|
| 24 |
MKDIR.cmd = makedir $1 |
| 25 |
RM.cmd = delete $1 |
| 26 |
CP.cmd = copy $1 To $2 |
| 27 |
|
| 28 |
CPPFLAGS = |
| 29 |
CFLAGS = |
| 30 |
LDFLAGS = |
| 31 |
|
| 32 |
prog_SOURCES += $(alloca_SOURCES) $(loadavg_SOURCES) $(glob_SOURCES) $(amiga_SOURCES) |
| 33 |
|
| 34 |
BUILT_SOURCES += $(lib)alloca.h $(lib)fnmatch.h $(lib)glob.h |
| 35 |
|
| 36 |
extra_CPPFLAGS = IDir $(OUTDIR)src IDir $(SRCDIR)/src IDir $(OUTDIR)lib IDir $(SRCDIR)/lib |
| 37 |
|
| 38 |
C_SOURCE = |
| 39 |
OUTPUT_OPTION = |
| 40 |
LDFLAGS = From LIB:cres.o |
| 41 |
LDLIBS = Lib LIB:sc.lib LIB:amiga.lib |
| 42 |
LINK_OUTPUT = To $@ |
| 43 |
|
| 44 |
$(OUTDIR)src/config.h: $(SRCDIR)/src/config.ami |
| 45 |
$(call CP.cmd,$<,$@) |