Modified and Added Makefiles to build for both Unix and Vx.
This commit is contained in:
40
src/as/Makefile.Unix
Normal file
40
src/as/Makefile.Unix
Normal 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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user