[DGD] Extensions - changing Makefile
pete at ana.sk
pete at ana.sk
Tue Aug 6 08:41:41 CEST 2002
This is what i have done, look at the patch in
attachment. It uses file named extension.c in
src/kfun directory.
> Hi there,
>
> It is not clear to me what I must do to the Makefile to make DGD compile
> with my extensions. Will someone explain the process to me?
>
> Thanks,
> Jason
>
>
>
> _________________________________________________________________
> List config page: http://list.imaginary.com/mailman/listinfo/dgd
>
-------------- next part --------------
--- dgd/src/Makefile Tue Apr 23 09:07:03 2002
+++ dgd-ext/src/Makefile Tue Apr 23 09:13:51 2002
@@ -2,7 +2,7 @@
# Makefile for DGD, Dworkin's Generic Driver
#
HOST= NETBSD
-DEFINES=-D$(HOST) #-DDUMP_FUNCS
+DEFINES=-D$(HOST) -DDGD_EXTENSION #-DDUMP_FUNCS
DEBUG= -g -DDEBUG
CCFLAGS=$(DEFINES) $(DEBUG)
CFLAGS= -I. -Icomp -Ilex -Ied -Iparser -Ikfun $(CCFLAGS)
diff -urN dgd/src/kfun/Makefile dgd-ext/src/kfun/Makefile
--- dgd/src/kfun/Makefile Tue Apr 23 09:06:45 2002
+++ dgd-ext/src/kfun/Makefile Tue Apr 23 09:13:51 2002
@@ -9,8 +9,8 @@
LINTFLAGS=-abcehpruz
CC= gcc
-SRC= builtin.c std.c file.c math.c extra.c debug.c
-OBJ= builtin.o std.o file.o math.o extra.o debug.o
+SRC= builtin.c std.c file.c math.c extra.c debug.c extension.c
+OBJ= builtin.o std.o file.o math.o extra.o debug.o extension.o
dgd: table.o $(OBJ)
@for i in table.o $(OBJ); do echo kfun/$$i; done > dgd
@@ -30,6 +30,7 @@
std.o file.o: ../path.h ../editor.h
std.o: ../comm.h ../call_out.h
file.o: ../editor.h
+extension.o: ../dgd_ext.h
std.o: ../comp/node.h ../comp/control.h ../comp/compile.h
debug.o: ../comp/control.h
More information about the DGD
mailing list