* as/z80/Makefile: remove trailing slash of BUILDIR
* as/z80/clean.mk: new EXEEXT
* Makefile.common.in: add to CFLAGS (and others), don't replace it
* support/cpp2/Makefile.in: new EXEEXT
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2566
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
+
+ * as/Makefile: new EXEEXT
+ * as/z80/Makefile: remove trailing slash of BUILDIR
+ * as/z80/clean.mk: new EXEEXT
+ * Makefile.common.in: add to CFLAGS (and others), don't replace it
+ * support/cpp2/Makefile.in: new EXEEXT
+
2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
-DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
-CPPFLAGS = $(INCLUDEFLAGS) -I. -I$(PRJDIR) -I$(SLIB)
-CFLAGS = -Wall @CFLAGS@
-LDFLAGS = @LDFLAGS@
+DEFS += $(subs -DHAVE_CONFIG_H,,@DEFS@)
+CPPFLAGS += $(INCLUDEFLAGS) -I. -I$(PRJDIR) -I$(SLIB)
+CFLAGS += -Wall @CFLAGS@
+LDFLAGS += @LDFLAGS@
# Shared settings between all the sub Makefiles
# Done here so that we don't have to start a Make from the top levelport
# Shared settings between all the sub Makefiles
# Done here so that we don't have to start a Make from the top levelport
include $(PRJDIR)/Makefile.common
PORTS = z80 gbz80
include $(PRJDIR)/Makefile.common
PORTS = z80 gbz80
$(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=$(BUILDDIR)
install: all install-doc
$(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=$(BUILDDIR)
install: all install-doc
- $(INSTALL) $(PRJDIR)/bin/as-z80 `echo $(bindir)/as-z80|sed '$(transform)'`
- $(STRIP) `echo $(bindir)/as-z80|sed '$(transform)'`
- $(INSTALL) $(PRJDIR)/bin/as-gbz80 `echo $(bindir)/as-gbz80|sed '$(transform)'`
- $(STRIP) `echo $(bindir)/as-gbz80|sed '$(transform)'`
+ $(INSTALL) $(PRJDIR)/bin/as-z80$(EXEEXT) `echo $(bindir)/as-z80$(EXEEXT)|sed '$(transform)'`
+ $(STRIP) `echo $(bindir)/as-z80$(EXEEXT)|sed '$(transform)'`
+ $(INSTALL) $(PRJDIR)/bin/as-gbz80$(EXEEXT) `echo $(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'`
+ $(STRIP) `echo $(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'`
install-doc:
$(INSTALL) -d $(docdir)/aslink
cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink
uninstall:
install-doc:
$(INSTALL) -d $(docdir)/aslink
cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink
uninstall:
- cd $(bindir); rm -f as-z80 as-gbz80
+ cd $(bindir); rm -f as-z80$(EXEEXT) as-gbz80$(EXEEXT)
OBJS = $(SRC:%.c=$(OBJDIR)/%.o)
SLIBOBJS = $(SLIBSRC:%.c=$(OBJDIR)/%.o)
OBJS = $(SRC:%.c=$(OBJDIR)/%.o)
SLIBOBJS = $(SLIBSRC:%.c=$(OBJDIR)/%.o)
-BINS = $(BUILDDIR)as$(EXT)$(EXEEXT)
+BINS = $(BUILDDIR)/as$(EXT)$(EXEEXT)
CFLAGS += $(CPPFLAGS) $(OPTS) -I. -DINDEXLIB -DMLH_MAP -DUNIX -DSDK
CFLAGS += -funsigned-char
CFLAGS += $(CPPFLAGS) $(OPTS) -I. -DINDEXLIB -DMLH_MAP -DUNIX -DSDK
CFLAGS += -funsigned-char
# Deleting all files created by building the program
# --------------------------------------------------
# Deleting all files created by building the program
# --------------------------------------------------
+include ../../Makefile.common
+
clean:
rm -rf obj
rm -f *core *[%~] *.[oa]
rm -f .[a-z]*~
clean:
rm -rf obj
rm -f *core *[%~] *.[oa]
rm -f .[a-z]*~
- rm -f $(BUILDDIR)/as-z80 as-z80
- rm -f $(BUILDDIR)/as-gbz80 as-gbz80
+ rm -f $(BUILDDIR)/as-z80$(EXEEXT) as-z80$(EXEEXT)
+ rm -f $(BUILDDIR)/as-gbz80$(EXEEXT) as-gbz80$(EXEEXT)
# Deleting all files created by configuring or building the program
# -----------------------------------------------------------------
# Deleting all files created by configuring or building the program
# -----------------------------------------------------------------
#the Free Software Foundation, 59 Temple Place - Suite 330,
#Boston MA 02111-1307, USA.
#the Free Software Foundation, 59 Temple Place - Suite 330,
#Boston MA 02111-1307, USA.
-TARGET = $(PRJDIR)/bin/sdcpp
+TARGET = $(PRJDIR)/bin/sdcpp$(EXEEXT)
# This is the default target.
all: $(TARGET)
# This is the default target.
all: $(TARGET)
install: all
mkdir -p $(bindir)
install: all
mkdir -p $(bindir)
- $(INSTALL) $(TARGET) `echo $(bindir)/sdcpp|sed '$(transform)'`
- $(STRIP) `echo $(bindir)/sdcpp|sed '$(transform)'`
+ $(INSTALL) $(TARGET) `echo $(bindir)/sdcpp$(EXEEXT)|sed '$(transform)'`
+ $(STRIP) `echo $(bindir)/sdcpp$(EXEEXT)|sed '$(transform)'`
+ rm -f $(bindir)/sdcpp$(EXEEXT)
clean:
-rm -f $(TARGET) *.o core libcpp.a
clean:
-rm -f $(TARGET) *.o core libcpp.a