Commit e49392aa authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix aic7xxx aicasm build

The -ldb has to be at the end sometimes
parent b950581c
...@@ -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}
LIBS= -ldb
CLEANFILES= ${GENSRCS} ${GENHDRS} $(YSRCS:.y=.output) CLEANFILES= ${GENSRCS} ${GENHDRS} $(YSRCS:.y=.output)
# 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 \
...@@ -45,8 +46,9 @@ aicdb.h: ...@@ -45,8 +46,9 @@ aicdb.h:
echo "*** Install db development libraries"; \ echo "*** Install db development libraries"; \
fi fi
clean-files := $(CLEANFILES) $(PROG)
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