mirror of https://github.com/acidanthera/audk.git
64 lines
1.3 KiB
Plaintext
64 lines
1.3 KiB
Plaintext
#
|
|
# Makefile for DLG 1.33
|
|
# Terence Parr
|
|
# Purdue University, U of MN, Parr Research Corporation
|
|
# 1989-1994
|
|
#
|
|
# Ported to IBM C-Set/2 and Microsoft 6.0 by
|
|
# Ed Harfmann
|
|
# Micro Data Base Systems
|
|
# Lafayette, Indiana
|
|
#
|
|
SET=../support/set
|
|
PCCTS_H=../h
|
|
|
|
##
|
|
## Uncomment the appropriate section to build
|
|
##
|
|
|
|
|
|
#
|
|
# UNIX
|
|
#
|
|
CC=cc
|
|
ANTLR=../bin/antlr
|
|
DLG=../bin/dlg
|
|
ANSI=-ansi
|
|
CFLAGS= -O -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN $(COTHER) $(ANSI) -DZZLEXBUFSIZE=32000
|
|
OBJ_EXT=o
|
|
OUT_OBJ = -o
|
|
OBJ = dlg_p.o dlg_a.o main.o err.o set.o support.o output.o \
|
|
relabel.o automata.o
|
|
|
|
dlg : $(OBJ) $(SRC)
|
|
$(CC) $(CFLAGS) -o dlg $(OBJ)
|
|
mv dlg ../bin
|
|
|
|
SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c support.c output.c \
|
|
relabel.c automata.c
|
|
|
|
dlg_p.c parser.dlg err.c tokens.h : dlg_p.g
|
|
$(ANTLR) dlg_p.g
|
|
|
|
dlg_a.c mode.h : parser.dlg
|
|
$(DLG) -C2 parser.dlg dlg_a.c
|
|
|
|
dlg_p.$(OBJ_EXT) : dlg_p.c dlg.h tokens.h mode.h
|
|
$(CC) $(CFLAGS) -c dlg_p.c
|
|
|
|
dlg_a.$(OBJ_EXT) : dlg_a.c dlg.h tokens.h mode.h
|
|
$(CC) $(CFLAGS) -c dlg_a.c
|
|
|
|
main.$(OBJ_EXT) : main.c dlg.h
|
|
$(CC) $(CFLAGS) -c main.c
|
|
|
|
set.$(OBJ_EXT) : $(SET)/set.c
|
|
$(CC) -c $(CFLAGS) $(SET)/set.c
|
|
|
|
lint:
|
|
lint *.c
|
|
|
|
#clean up all the intermediate files
|
|
clean:
|
|
rm -f *.$(OBJ_EXT) core
|