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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user