Initial Makefile.

This commit is contained in:
Mike Bordua
1994-07-12 20:25:13 +00:00
parent a9445fb0c7
commit 203c80f2fe
5 changed files with 247 additions and 0 deletions

46
src/dbtools/Makefile.Unix Normal file
View File

@@ -0,0 +1,46 @@
EPICS = ../../..
include $(EPICS)/config/CONFIG
CC = acc -Xt
SRCS = \
dbStaticLib.c \
atdb_lex.c \
atdb_yacc.c \
dbta.c \
atdb.c \
dbl.c \
dbls.c
OBJS =
LIBOBJS = \
dbStaticLib.o
LIBNAME = libDb.a
TARGET = $(OBDIR)/dbta $(OBDIR)/atdb $(OBDIR)/dbl $(OBDIR)/dbls
$(OBDIR)/atdb: $(OBDIR)/atdb.o $(OBDIR)/atdb_yacc.o
$(LINK.c) -o $@ $? $(LDLIBS)
depends: $(OBDIR)/atdb_yacc.o
$(OBDIR)/atdb_yacc.o: atdb_lex.c atdb_yacc.c
/bin/rm -f $(OBDIR)/atdb_yacc.o
$(CC) $(CFLAGS) -o $@ -c atdb_yacc.c
atdb_yacc.c: atdb_lex.c atdb_yacc.y
yacc atdb_yacc.y
/bin/rm -f atdb_yacc.c
/bin/mv y.tab.c atdb_yacc.c
atdb_lex.c: atdb_lex.l
lex atdb_lex.l
/bin/rm -f atdb_lex.c
/bin/mv lex.yy.c atdb_lex.c
clean::
/bin/rm -f atdb_lex.c atdb_yacc.c
include $(EPICS)/config/RULES.Unix