Made bbs menus machine endian indepentant
This commit is contained in:
@@ -3,13 +3,9 @@
|
||||
|
||||
include ../Makefile.global
|
||||
|
||||
SRCS = endian.c
|
||||
HDRS = endian.h
|
||||
OBJS = endian.o
|
||||
OTHER = Makefile header.txt footer.txt menus-le.tar menus-be.tar \
|
||||
txtfiles-en.tar templates-en.tar \
|
||||
OTHER = Makefile header.txt footer.txt \
|
||||
menus-en.tar txtfiles-en.tar templates-en.tar \
|
||||
menus-es.tar txtfiles-es.tar templates-es.tar \
|
||||
menus-en.tar \
|
||||
templates-de.tar \
|
||||
templates-nl.tar
|
||||
|
||||
@@ -18,13 +14,10 @@ OTHER = Makefile header.txt footer.txt menus-le.tar menus-be.tar \
|
||||
.c.o:
|
||||
${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
|
||||
|
||||
all: endian
|
||||
all:
|
||||
|
||||
endian: ${OBJS} ${LIBS}
|
||||
${CC} -o endian ${OBJS} ${LIBS}
|
||||
strip endian
|
||||
|
||||
install: all
|
||||
install:
|
||||
@if [ ! -f ${ETCDIR}/header.txt ]; then \
|
||||
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 header.txt ${ETCDIR} ; \
|
||||
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 header.txt ${ETCDIR}" ; \
|
||||
@@ -34,8 +27,8 @@ install: all
|
||||
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 footer.txt ${ETCDIR}" ; \
|
||||
fi
|
||||
@if [ ! -f ${PREFIX}/english/menus/main.mnu ]; then \
|
||||
tar xfC menus-`./endian`.tar ${PREFIX}/english/menus ; \
|
||||
echo "tar xfC menus-`./endian`.tar ${PREFIX}/english/menus" ; \
|
||||
tar xfC menus-en.tar ${PREFIX}/english/menus ; \
|
||||
echo "tar xfC menus-en.tar ${PREFIX}/english/menus" ; \
|
||||
echo "Installed default English menus" ; \
|
||||
fi
|
||||
@if [ ! -f ${PREFIX}/english/txtfiles/main.ans ]; then \
|
||||
@@ -69,7 +62,7 @@ install: all
|
||||
fi
|
||||
|
||||
clean:
|
||||
rm -f endian *.o *.h~ *.c~ core filelist Makefile.bak
|
||||
rm -f *.h~ *.c~ core filelist Makefile.bak
|
||||
|
||||
filelist: Makefile
|
||||
BASE=`pwd`; \
|
||||
@@ -100,5 +93,4 @@ depend:
|
||||
|
||||
# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
|
||||
# Dependencies generated by make depend
|
||||
endian.o: endian.h
|
||||
# End of generated dependencies
|
||||
|
Reference in New Issue
Block a user