From 1bb9d0fa70ad783807b7c2f7120e09ffe83a15de Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 5 Jan 2001 16:59:41 +0000 Subject: [PATCH] Changed the makefiles to work under OS/2 using EMX (Changes from Mirco Miranda). git-svn-id: svn://svn.cc65.org/cc65/trunk@590 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ar65/make/gcc.mak | 3 +++ src/ca65/make/gcc.mak | 2 ++ src/cc65/make/gcc.mak | 2 ++ src/cl65/make/gcc.mak | 2 ++ src/da65/make/gcc.mak | 2 ++ src/grc/make/gcc.mak | 2 ++ src/ld65/make/gcc.mak | 2 ++ src/od65/make/gcc.mak | 2 ++ 8 files changed, 17 insertions(+) diff --git a/src/ar65/make/gcc.mak b/src/ar65/make/gcc.mak index ed08ec0be..2ea88dd24 100644 --- a/src/ar65/make/gcc.mak +++ b/src/ar65/make/gcc.mak @@ -7,8 +7,10 @@ COMMON = ../common CFLAGS = -g -O2 -Wall -I$(COMMON) CC = gcc +EBIND = emxbind LDFLAGS = + OBJS = add.o \ del.o \ error.o \ @@ -40,6 +42,7 @@ endif ar65: $(OBJS) $(LIBS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi clean: rm -f *~ core diff --git a/src/ca65/make/gcc.mak b/src/ca65/make/gcc.mak index 66366a8e1..f200e9a70 100644 --- a/src/ca65/make/gcc.mak +++ b/src/ca65/make/gcc.mak @@ -7,6 +7,7 @@ COMMON = ../common CFLAGS = -g -O2 -Wall -I$(COMMON) CC = gcc +EBIND = emxbind LDFLAGS = OBJS = condasm.o \ @@ -53,6 +54,7 @@ endif ca65: $(OBJS) $(LIBS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi clean: rm -f *~ core *.lst diff --git a/src/cc65/make/gcc.mak b/src/cc65/make/gcc.mak index 5543986c4..5df64dc87 100644 --- a/src/cc65/make/gcc.mak +++ b/src/cc65/make/gcc.mak @@ -10,6 +10,7 @@ COMMON = ../common CDEFS=-DCC65_INC=\"/usr/lib/cc65/include/\" CFLAGS = -O2 -g -Wall -I$(COMMON) $(CDEFS) CC=gcc +EBIND=emxbind LDFLAGS= OBJS = anonname.o \ @@ -67,6 +68,7 @@ endif cc65: $(OBJS) $(CC) $(LDFLAGS) -o cc65 $(CFLAGS) $(OBJS) $(LIBS) + @if [ $(OS2_SHELL) ] ; then $(EBIND) cc65 ; fi clean: rm -f *~ core *.map diff --git a/src/cl65/make/gcc.mak b/src/cl65/make/gcc.mak index da49adc9c..88490859a 100644 --- a/src/cl65/make/gcc.mak +++ b/src/cl65/make/gcc.mak @@ -7,6 +7,7 @@ COMMON = ../common CC=gcc CFLAGS = -O2 -g -Wall -I$(COMMON) +EBIND = emxbind LDFLAGS= OBJS = error.o \ @@ -31,6 +32,7 @@ endif cl65: $(OBJS) $(LIBS) $(CC) $(LDFLAGS) -o cl65 $(CFLAGS) $(OBJS) $(LIBS) + @if [ $(OS2_SHELL) ] ; then $(EBIND) cl65 ; fi clean: rm -f *~ core diff --git a/src/da65/make/gcc.mak b/src/da65/make/gcc.mak index 638830846..37b8aced2 100644 --- a/src/da65/make/gcc.mak +++ b/src/da65/make/gcc.mak @@ -7,6 +7,7 @@ COMMON = ../common CFLAGS = -g -O2 -Wall -I$(COMMON) CC=gcc +EBIND=emxbind LDFLAGS= OBJS = attrtab.o \ @@ -40,6 +41,7 @@ endif da65: $(OBJS) $(LIBS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi clean: rm -f *~ core *.map diff --git a/src/grc/make/gcc.mak b/src/grc/make/gcc.mak index 7e5398b7e..472db02d4 100644 --- a/src/grc/make/gcc.mak +++ b/src/grc/make/gcc.mak @@ -5,6 +5,7 @@ CFLAGS = -g -O2 -Wall CC = gcc LDFLAGS = +EBIND = emxbind OBJS = grc.o @@ -23,6 +24,7 @@ endif grc: $(OBJS) $(LIBS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi clean: rm -f *~ core *.lst diff --git a/src/ld65/make/gcc.mak b/src/ld65/make/gcc.mak index d87c2359b..633b9f360 100644 --- a/src/ld65/make/gcc.mak +++ b/src/ld65/make/gcc.mak @@ -9,6 +9,7 @@ COMMON = ../common CDEFS=-DCC65_LIB=\"/usr/lib/cc65/lib/\" CFLAGS = -g -O2 -Wall -I$(COMMON) $(CDEFS) CC=gcc +EBIND=emxbind LDFLAGS= # Perl script for config file conversion @@ -74,6 +75,7 @@ endif ld65: $(INCS) $(OBJS) $(LIBS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi inc: $(INCS) diff --git a/src/od65/make/gcc.mak b/src/od65/make/gcc.mak index 08fd23712..ce06f5056 100644 --- a/src/od65/make/gcc.mak +++ b/src/od65/make/gcc.mak @@ -8,6 +8,7 @@ COMMON = ../common CFLAGS = -O2 -g -Wall -I$(COMMON) CC=gcc +EBIND=emxbind LDFLAGS= OBJS = dump.o \ @@ -33,6 +34,7 @@ endif $(EXE): $(OBJS) $(CC) $(LDFLAGS) -o $(EXE) $(CFLAGS) $(OBJS) $(LIBS) + @if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi clean: rm -f *~ core *.map -- 2.39.5