Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Nov 19, 2024
1 parent 9ad6521 commit 02abc63
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 525 deletions.
48 changes: 13 additions & 35 deletions usr.bin/bmake/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CFLAGS+= -I${.CURDIR}
CLEANDIRS+= FreeBSD MidnightBSD
CLEANFILES+= bootstrap

# $Id: Makefile,v 1.107 2020/06/07 21:18:46 sjg Exp $
# $Id: Makefile,v 1.117 2021/12/04 18:51:30 sjg Exp $

PROG?= ${.CURDIR:T}

Expand All @@ -24,50 +24,20 @@ SRCS= \
for.c \
hash.c \
job.c \
lst.c \
main.c \
make.c \
make_malloc.c \
meta.c \
metachar.c \
parse.c \
str.c \
strlist.c \
suff.c \
targ.c \
trace.c \
util.c \
var.c

# from lst.lib/
SRCS+= \
lstAppend.c \
lstAtEnd.c \
lstAtFront.c \
lstClose.c \
lstConcat.c \
lstDatum.c \
lstDeQueue.c \
lstDestroy.c \
lstDupl.c \
lstEnQueue.c \
lstFind.c \
lstFindFrom.c \
lstFirst.c \
lstForEach.c \
lstForEachFrom.c \
lstInit.c \
lstInsert.c \
lstIsAtEnd.c \
lstIsEmpty.c \
lstLast.c \
lstMember.c \
lstNext.c \
lstOpen.c \
lstPrev.c \
lstRemove.c \
lstReplace.c \
lstSucc.c

.sinclude "Makefile.inc"

# this file gets generated by configure
Expand All @@ -90,6 +60,12 @@ CFLAGS+= -I. -I${srcdir} ${XDEFS} -DMAKE_NATIVE
CFLAGS+= ${COPTS.${.ALLSRC:M*.c:T:u}}
COPTS.main.c+= "-DMAKE_VERSION=\"${_MAKE_VERSION}\""

.for x in FORCE_MACHINE FORCE_MACHINE_ARCH
.ifdef $x
COPTS.main.c+= "-D$x=\"${$x}\""
.endif
.endfor

# meta mode can be useful even without filemon
# should be set by now
USE_FILEMON ?= no
Expand All @@ -109,7 +85,6 @@ COPTS.filemon_dev.c += -DHAVE_FILEMON_H -I${FILEMON_H:H}
.endif # USE_FILEMON

.PATH: ${srcdir}
.PATH: ${srcdir}/lst.lib

.if make(obj) || make(clean)
SUBDIR+= unit-tests
Expand All @@ -119,7 +94,7 @@ SUBDIR+= unit-tests
MAN= ${PROG}.1
MAN1= ${MAN}

.if (${PROG} != "make")
.if ${PROG} != "make"
CLEANFILES+= my.history
.if make(${MAN}) || !exists(${srcdir}/${MAN})
my.history:
Expand Down Expand Up @@ -170,8 +145,11 @@ ${OBJS}: config.h


# A simple unit-test driver to help catch regressions
TEST_MAKE ?= ${.OBJDIR}/${PROG:T}
accept test:
cd ${.CURDIR}/unit-tests && MAKEFLAGS= ${.MAKE} -r -m / TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
cd ${.CURDIR}/unit-tests && \
MAKEFLAGS= ${TEST_MAKE} -r -m / ${.TARGET} ${TESTS:DTESTS=${TESTS:Q}}


# override some simple things
BINDIR= /usr/bin
Expand Down
23 changes: 22 additions & 1 deletion usr.bin/calendar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,28 @@ CFLAGS+= -DWITH_ICONV
.endif

FILESGROUPS+= CALS
CALS= calendars/calendar.freebsd
CALS= calendars/calendar.all \
calendars/calendar.australia \
calendars/calendar.birthday \
calendars/calendar.brazilian \
calendars/calendar.christian \
calendars/calendar.computer \
calendars/calendar.croatian \
calendars/calendar.dutch \
calendars/calendar.french \
calendars/calendar.german \
calendars/calendar.history \
calendars/calendar.holiday \
calendars/calendar.hungarian \
calendars/calendar.judaic \
calendars/calendar.lotr \
calendars/calendar.music \
calendars/calendar.newzealand \
calendars/calendar.russian \
calendars/calendar.southafrica \
calendars/calendar.ukrainian \
calendars/calendar.usholiday \
calendars/calendar.world
CALSDIR= ${SHAREDIR}/calendar

HAS_TESTS=
Expand Down
Loading

0 comments on commit 02abc63

Please sign in to comment.