Modified and Added Makefiles to build for both Unix and Vx.

This commit is contained in:
Mike Bordua
1994-07-14 03:01:20 +00:00
parent 99712ead4d
commit aaf0d92119
2 changed files with 42 additions and 2 deletions

40
src/as/Makefile.Unix Normal file
View File

@@ -0,0 +1,40 @@
EPICS = ../../..
include $(EPICS)/config/CONFIG
USR_CFLAGS = -D_NO_PROTO
LDLIBS = -lAs -lca -lCom -lDb -lCom -s
LEX = $(ELEX)
YACC = $(EYACC)
SRCS = \
ascheck.c asLib.c
OBJS = \
$(OBDIR)/ascheck.o
LIBOBJS = \
$(OBDIR)/asLib.o
LIBNAME = libAs.a
PROD = $(OBDIR)/ascheck
depends: $(OBDIR)/asLib.c
$(OBDIR)/asLib.c: asLib.y $(OBDIR)/asLib_lex.c
$(YACC) -l asLib.y
/bin/rm -f $(OBDIR)/asLib.c
/bin/mv y.tab.c $(OBDIR)/asLib.c
$(OBDIR)/asLib_lex.c: asLib_lex.l
$(LEX) -L asLib_lex.l
/bin/rm -f $(OBDIR)/asLib_lex.c
/bin/mv lex.yy.c $(OBDIR)/asLib_lex.c
$(OBDIR)/asLib.o: $(OBDIR)/asLib.c asLibRoutines.c
@echo "compiling asLib.c"
$(RM) $@
$(CC) -c $(CFLAGS) -o $(OBDIR)/asLib.o $(OBDIR)/asLib.c
@#load $(CFLAGS) asLib.c
include $(EPICS)/config/RULES.Unix

View File

@@ -8,11 +8,11 @@ SRCS = \
asDbLib.c asCa.c asLib.c
OBJS = \
$(OBDIR)/asDbLib.o $(OBDIR)/asCa.o $(OBDIR)/asLib.o
LIBOBJS = \
$(OBDIR)/asDbLib.o $(OBDIR)/asCa.o $(OBDIR)/asLib.o
PROD = $(OBDIR)/asLibrary
LIBNAME = asLibrary
depends: $(OBDIR)/asLib.c