Commit cbf3b98b authored by Justin T. Gibbs's avatar Justin T. Gibbs

Update aicasm/Makefile so that link specifications are specified

after all object files.  This seems to be required in order to
link correctly in some cases.
parent 38604fb9
...@@ -10,9 +10,10 @@ GENHDRS= aicdb.h $(YSRCS:.y=.h) ...@@ -10,9 +10,10 @@ GENHDRS= aicdb.h $(YSRCS:.y=.h)
GENSRCS= $(YSRCS:.y=.c) $(LSRCS:.l=.c) GENSRCS= $(YSRCS:.y=.c) $(LSRCS:.l=.c)
SRCS= ${CSRCS} ${GENSRCS} SRCS= ${CSRCS} ${GENSRCS}
CLEANFILES= ${GENSRCS} ${GENHDRS} $(YSRCS:.y=.output) LIBS= -ldb
clean-files:= ${GENSRCS} ${GENHDRS} $(YSRCS:.y=.output) $(PROG)
# Override default kernel CFLAGS. This is a userland app. # Override default kernel CFLAGS. This is a userland app.
AICASM_CFLAGS:= -I/usr/include -I. -ldb AICASM_CFLAGS:= -I/usr/include -I.
YFLAGS= -d YFLAGS= -d
NOMAN= noman NOMAN= noman
...@@ -30,7 +31,7 @@ LFLAGS= -d ...@@ -30,7 +31,7 @@ LFLAGS= -d
endif endif
$(PROG): ${GENHDRS} $(SRCS) $(PROG): ${GENHDRS} $(SRCS)
$(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG) $(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG) $(LIBS)
aicdb.h: aicdb.h:
@if [ -e "/usr/include/db3/db_185.h" ]; then \ @if [ -e "/usr/include/db3/db_185.h" ]; then \
...@@ -46,7 +47,7 @@ aicdb.h: ...@@ -46,7 +47,7 @@ aicdb.h:
fi fi
clean: clean:
rm -f $(CLEANFILES) $(PROG) rm -f $(clean-files)
aicasm_gram.c aicasm_gram.h: aicasm_gram.y aicasm_gram.c aicasm_gram.h: aicasm_gram.y
$(YACC) $(YFLAGS) -b $(<:.y=) $< $(YACC) $(YFLAGS) -b $(<:.y=) $<
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment