[BACK]Return to Makefile.dsg CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Annotation of src/usr.bin/less/Makefile.dsg, Revision 1.1.1.1

1.1       shadchin    1: # Makefile for less under DJGPP v2.0 or later.
                      2:
                      3: #### Start of system configuration section. ####
                      4:
                      5: srcdir = .
                      6: VPATH = .
                      7:
                      8: CC = gcc
                      9: INSTALL = ginstall -c
                     10: INSTALL_PROGRAM = ginstall
                     11: INSTALL_DATA = ginstall -m 644
                     12: AWK = gawk
                     13:
                     14: CFLAGS = -O2 -g
                     15: CFLAGS_COMPILE_ONLY = -c
                     16: #LDFLAGS = -s
                     17: LDFLAGS = -g
                     18: O=o
                     19:
                     20: LIBS =
                     21: prefix = /dev/env/DJDIR
                     22: exec_prefix = ${prefix}
                     23:
                     24: bindir = ${exec_prefix}/bin
                     25: sysconfdir = ${prefix}/etc
                     26: mandir = ${prefix}/man
                     27: manext = 1
                     28:
                     29: #### End of system configuration section. ####
                     30:
                     31: # This rule allows us to supply the necessary -D options
                     32: # in addition to whatever the user asks for.
                     33: .c.o:
                     34:        ${CC} -I. ${CFLAGS_COMPILE_ONLY} -DBINDIR=\"${bindir}\" -DSYSDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} $<
                     35:
                     36: OBJ = \
                     37:        main.${O} screen.${O} brac.${O} ch.${O} charset.${O} cmdbuf.${O} \
                     38:        command.${O} cvt.${O} decode.${O} edit.${O} filename.${O} forwback.${O} \
                     39:        help.${O} ifile.${O} input.${O} jump.${O} line.${O} linenum.${O} \
                     40:        lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \
                     41:        output.${O} pattern.${O} position.${O} prompt.${O} search.${O} signal.${O} \
                     42:        tags.${O} ttyin.${O} version.${O}
                     43:
                     44: all: less lesskey lessecho
                     45:
                     46: less: ${OBJ}
                     47:        ${CC} ${LDFLAGS} -o $@ ${OBJ} ${LIBS}
                     48:
                     49: lesskey: lesskey.${O} version.${O}
                     50:        ${CC} ${LDFLAGS} -o $@ lesskey.${O} version.${O}
                     51:
                     52: lessecho: lessecho.${O} version.${O}
                     53:        ${CC} ${LDFLAGS} -o $@ lessecho.${O} version.${O}
                     54:
                     55: defines.h: defines.ds
                     56:        command.com /c copy $< $@
                     57:
                     58: ${OBJ}: ${srcdir}/less.h defines.h ${srcdir}/funcs.h
                     59:
                     60: install: all ${srcdir}/less.man ${srcdir}/lesskey.man
                     61:        ${INSTALL_PROGRAM} less.exe ${bindir}/less.exe
                     62:        ${INSTALL_PROGRAM} lesskey.exe ${bindir}/lesskey.exe
                     63:        ${INSTALL_PROGRAM} lessecho.exe ${bindir}/lessecho.exe
                     64:        ${INSTALL_DATA} ${srcdir}/less.man ${mandir}/man${manext}/less.${manext}
                     65:        ${INSTALL_DATA} ${srcdir}/lesskey.man ${mandir}/man${manext}/lesskey.${manext}
                     66:
                     67: info:
                     68: install-info:
                     69: dvi:
                     70: check:
                     71: installcheck:
                     72:
                     73: TAGS:
                     74:        etags *.c *.h
                     75:
                     76: newfuncs:
                     77:        command.com /c if exist funcs.h del funcs.h
                     78:        ${AWK} -f mkfuncs.awk ${OBJ:.${O}=.c} > funcs.h
                     79:
                     80: clean:
                     81:        command.com /c for %f in (*.${O} less lesskey lessecho *.exe) do if exist %f del %f
                     82:
                     83: mostlyclean: clean
                     84:
                     85: distclean: clean
                     86:        command.com /c if not exist Makefile.dsg ren Makefile Makefile.dsg
                     87:        command.com /c if not exist defines.ds ren defines.h defines.ds
                     88:        command.com /c for %f in (Makefile defines.h) do if exist %f del %f
                     89:
                     90: realclean: distclean
                     91:        command.com /c if exist TAGS del TAGS
                     92: