]> git.sur5r.net Git - cc65/blobdiff - src/grc/make/gcc.mak
using functions from common/ in grc, correct order of menus in test.grc
[cc65] / src / grc / make / gcc.mak
index 2cb36f645226359aae82457fef977588d9f045f3..8bfb7acac8642d51e865e477c6520cdeedaa3a39 100644 (file)
@@ -2,7 +2,9 @@
 # gcc Makefile for grc
 #
 
-CFLAGS         = -g -O2 -Wall -W
+COMMON = ../common
+
+CFLAGS         = -g -O2 -Wall -W -I$(COMMON)
 CC     = gcc
 LDFLAGS        =
 EBIND  = emxbind
@@ -11,6 +13,8 @@ OBJS =  grc.o
 
 EXECS = grc
 
+LIBS = $(COMMON)/common.a
+
 .PHONY: all
 ifeq (.depend,$(wildcard .depend))
 all : $(EXECS)
@@ -38,6 +42,6 @@ zap:  clean
 .PHONY: depend dep
 depend dep:    $(OBJS:.o=.c)
        @echo "Creating dependency information"
-       $(CC) -MM $^ > .depend
+       $(CC) -I$(COMMON) -MM $^ > .depend