fix build and re-enable.
[AROS-Contrib.git] / gnu / make / mmakefile.src
blob0dddc64c781a1f868460d41527b02e6b9e93ceb9
1 # Copyright (C) 1988, 89, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
2 # This file is part of GNU Make.
4 # GNU Make is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # GNU Make is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with GNU Make; see the file COPYING.  If not, write to
16 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 # Boston, MA 02111-1307, USA.
20 #       Makefile for GNU Make
23 include $(SRCDIR)/config/aros-contrib.cfg
25 #MM- contrib-gnu : contrib-gnu-make
26 #MM contrib-gnu-make : includes linklibs kernel-aros-linklib
28 TARGETDIR := $(AROS_DEVELOPER)/bin
30 NOWARN_FLAGS := $(NOWARN_UNUSED_FUNCTION) $(NOWARN_UNUSED_LABEL) \
31     $(NOWARN_UNUSED_VARIABLE) $(NOWARN_UNUSED_BUT_SET_VARIABLE)
32 USER_CFLAGS := $(NOWARN_FLAGS) -DHAVE_CONFIG_H -D__AROS__ -D_AMIGA \
33     -DFILE_TIMESTAMP_HI_RES=0 -DINCLUDEDIR="\".\"" -DLIBDIR="\".\"" -DNO_ARCHIVES
34 USER_INCLUDES := -I$(SRCDIR)/$(CURDIR) -I$(SRCDIR)/$(CURDIR)/glob
36 ifneq ("","$(strip $(WARN_ERROR))")
37 CONFIG_CFLAGS := $(subst $(WARN_ERROR),,$(CONFIG_CFLAGS))
38 endif
40 FILES := commands job dir file misc main read remake \
41     rule implicit default variable expand function \
42     vpath version ar arscan signame hash \
43     remote-stub getopt getopt1 alloca amiga glob/glob glob/fnmatch
45 %build_prog mmake=contrib-gnu-make progname=make files=$(FILES) \
46     targetdir=$(TARGETDIR) nix=yes
48 %common