# gcc Makefile for ar65
#
-CFLAGS = -g -O2 -Wall -I../common
+# Library dir
+COMMON = ../common
+
+CFLAGS = -g -O2 -Wall -I$(COMMON)
CC = gcc
LDFLAGS =
objdata.o \
objfile.o
-LIBS = ../common/common.a
+LIBS = $(COMMON)/common.a
EXECS = ar65
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
- $(CC) -MM $^ > .depend
+ $(CC) -I$(COMMON) -MM $^ > .depend
# gcc Makefile for ca65
#
-CFLAGS = -g -O2 -Wall -I../common
+# Library dir
+COMMON = ../common
+
+CFLAGS = -g -O2 -Wall -I$(COMMON)
CC = gcc
LDFLAGS =
toklist.o \
ulabel.o
-LIBS = ../common/common.a
+LIBS = $(COMMON)/common.a
EXECS = ca65
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
- $(CC) -MM $^ > .depend
+ $(CC) -I$(COMMON) -MM $^ > .depend
#
+# 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=
symtab.o \
util.o
-LIBS = ../common/common.a
+LIBS = $(COMMON)/common.a
EXECS = cc65
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
- $(CC) -MM $^ > .depend
+ $(CC) -I$(COMMON) -MM $^ > .depend
# 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 \
main.o \
spawn.o
-LIBS = ../common/common.a
+LIBS = $(COMMON)/common.a
EXECS = cl65
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
- $(CC) -MM $^ > .depend
+ $(CC) -I$(COMMON) -MM $^ > .depend
# 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=
segments.o \
target.o
-LIBS = ../common/common.a
+LIBS = $(COMMON)/common.a
EXECS = ld65
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
- $(CC) -MM $^ > .depend
+ $(CC) -I$(COMMON) -MM $^ > .depend