Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
yaps
> Makefile
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File Makefile of Package yaps
# -*- sh -*- # include Config # #CFLAGS := -include mem.h $(CFLAGS) CFLAGS := $(CFLAGS) # DEFS = -DCFGFILE=\"$(YAPS_CFGFILE)\" -DLCFGFILE=\"$(YAPS_LCFGFILE)\" \ -DLIBDIR=\"$(YAPS_LIBDIR)\" LIBS = -L. -lpager $(LLIBS) OBJS = data.o util.o cfg.o tty.o cv.o asc.o scr.o tap.o ucp.o \ slang.o lua.o #mem.o YOBJS = yaps.o valid.o DSTFLE = $(YAPS_BINDIR)/yaps all: yaps yaps.doc @if [ -f contrib/Makefile ]; then \ $(MAKE) -C contrib all ; \ fi yaps: libpager.a $(YOBJS) $(CC) $(LDFLAGS) $(YOBJS) -o $@ $(LIBS) libpager.a: $(OBJS) rm -f $@ ar rc $@ $(OBJS) ranlib $@ yaps.o: yaps.c pager.h $(CC) $(CFLAGS) $(DEFS) $< -c -o $@ yaps.doc: yaps.html lynx -cfg=/dev/null -nolist -dump $< > $@ install: $(DSTFLE) $(CFGFILE) if [ ! -d $(DESTDIR)$(YAPS_LIBDIR) ]; then \ install -d -m 755 $(DESTDIR)$(YAPS_LIBDIR) ; \ fi @if [ -f contrib/Makefile ]; then \ $(MAKE) -C contrib install ; \ fi $(DSTFLE): yaps install -m $(YAPS_MODE) -s yaps $(DESTDIR)$@ $(CFGFILE): yaps.rc @if [ ! -f $@ ]; then \ install -m $(YAPS_RCMODE) -s yaps.rc $(DESTDIR)$@ ; \ fi clean: rm -f *.[oa] *~ .*~ yaps core .depend @if [ -f contrib/Makefile ]; then \ $(MAKE) -C contrib clean ; \ fi depend: $(CPP) $(CFLAGS) -MM *.c > .depend @if [ -f contrib/Makefile ]; then \ $(MAKE) -C contrib depend ; \ fi ifeq (.depend,$(wildcard .depend)) include .depend endif