1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-16 09:29:32 +00:00

Add common dir in more search paths

git-svn-id: svn://svn.cc65.org/cc65/trunk@226 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-07-29 16:01:54 +00:00
parent 0a57d32509
commit f9b58c50dd
5 changed files with 30 additions and 15 deletions

View File

@ -2,7 +2,10 @@
# gcc Makefile for ar65
#
CFLAGS = -g -O2 -Wall -I../common
# Library dir
COMMON = ../common
CFLAGS = -g -O2 -Wall -I$(COMMON)
CC = gcc
LDFLAGS =
@ -19,7 +22,7 @@ OBJS = add.o \
objdata.o \
objfile.o
LIBS = ../common/common.a
LIBS = $(COMMON)/common.a
EXECS = ar65
@ -50,6 +53,6 @@ zap: clean
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -MM $^ > .depend
$(CC) -I$(COMMON) -MM $^ > .depend

View File

@ -2,7 +2,10 @@
# gcc Makefile for ca65
#
CFLAGS = -g -O2 -Wall -I../common
# Library dir
COMMON = ../common
CFLAGS = -g -O2 -Wall -I$(COMMON)
CC = gcc
LDFLAGS =
@ -30,7 +33,7 @@ OBJS = condasm.o \
toklist.o \
ulabel.o
LIBS = ../common/common.a
LIBS = $(COMMON)/common.a
EXECS = ca65
@ -60,6 +63,6 @@ zap: clean
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -MM $^ > .depend
$(CC) -I$(COMMON) -MM $^ > .depend

View File

@ -3,9 +3,12 @@
#
# Library dir
COMMON = ../common
# Default for the compiler lib search path as compiler define
CDEFS=-DCC65_INC=\"/usr/lib/cc65/include/\"
CFLAGS = -O2 -g -Wall -I../common $(CDEFS)
CFLAGS = -O2 -g -Wall -I$(COMMON) $(CDEFS)
CC=gcc
LDFLAGS=
@ -45,7 +48,7 @@ OBJS = anonname.o \
symtab.o \
util.o
LIBS = ../common/common.a
LIBS = $(COMMON)/common.a
EXECS = cc65
@ -75,6 +78,6 @@ zap: clean
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -MM $^ > .depend
$(CC) -I$(COMMON) -MM $^ > .depend

View File

@ -2,8 +2,11 @@
# Makefile for the cl65 compile&link utility
#
# Library dir
COMMON = ../common
CC=gcc
CFLAGS = -O2 -g -Wall
CFLAGS = -O2 -g -Wall -I$(COMMON)
LDFLAGS=
OBJS = error.o \
@ -11,7 +14,7 @@ OBJS = error.o \
main.o \
spawn.o
LIBS = ../common/common.a
LIBS = $(COMMON)/common.a
EXECS = cl65
@ -42,7 +45,7 @@ zap: clean
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -MM $^ > .depend
$(CC) -I$(COMMON) -MM $^ > .depend

View File

@ -2,9 +2,12 @@
# gcc Makefile for ld65
#
# Library dir
COMMON = ../common
# Default for the compiler lib search path as compiler define
CDEFS=-DCC65_LIB=\"/usr/lib/cc65/lib/\"
CFLAGS = -g -O2 -Wall -I../common $(CDEFS)
CFLAGS = -g -O2 -Wall -I$(COMMON) $(CDEFS)
CC=gcc
LDFLAGS=
@ -28,7 +31,7 @@ OBJS = bin.o \
segments.o \
target.o
LIBS = ../common/common.a
LIBS = $(COMMON)/common.a
EXECS = ld65
@ -60,6 +63,6 @@ zap: clean
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -MM $^ > .depend
$(CC) -I$(COMMON) -MM $^ > .depend