Make the spawn module an include file as suggested by Greg King

git-svn-id: svn://svn.cc65.org/cc65/trunk@1649 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-11-25 21:12:00 +00:00
parent 345d2ddf54
commit ef886278a8
4 changed files with 61 additions and 24 deletions

View File

@@ -5,15 +5,18 @@
# Library dir
COMMON = ../common
# Type of spawn function to use
SPAWN = SPAWN_UNIX
CC=gcc
CFLAGS = -O2 -g -Wall -W -I$(COMMON)
CFLAGS = -O2 -g -Wall -W -I$(COMMON) -D$(SPAWN)
EBIND = emxbind
LDFLAGS=
OBJS = error.o \
global.o \
main.o \
spawn-unix.o
main.o
LIBS = $(COMMON)/common.a
@@ -31,7 +34,7 @@ endif
cl65: $(OBJS) $(LIBS)
$(CC) $(LDFLAGS) -o cl65 $(CFLAGS) $(OBJS) $(LIBS)
$(CC) $(LDFLAGS) -o cl65 $(OBJS) $(LIBS)
@if [ $(OS2_SHELL) ] ; then $(EBIND) cl65 ; fi
clean:
@@ -47,7 +50,7 @@ zap: clean
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -I$(COMMON) -MM $^ > .depend
$(CC) -I$(COMMON) -D$(SPAWN) -MM $^ > .depend