names. All system processes can now either use panic() or report() from libutils, or redefine their own function. Assertions are done via the standard <assert.h> functionality.
60 lines
1.1 KiB
Makefile
60 lines
1.1 KiB
Makefile
# Makefile for lib/utils.
|
|
|
|
CFLAGS = -O -D_MINIX -D_POSIX_SOURCE
|
|
CC1 = $(CC) $(CFLAGS) -c
|
|
|
|
LIBUTILS = ../libutils.a
|
|
all: $(LIBUTILS)
|
|
|
|
OBJECTS = \
|
|
$(LIBUTILS)(tickdelay.o) \
|
|
$(LIBUTILS)(getuptime.o) \
|
|
$(LIBUTILS)(get_mon_prm.o) \
|
|
$(LIBUTILS)(env_parse.o) \
|
|
$(LIBUTILS)(env_panic.o) \
|
|
$(LIBUTILS)(env_prefix.o) \
|
|
$(LIBUTILS)(fkey_ctl.o) \
|
|
$(LIBUTILS)(get_proc_nr.o) \
|
|
$(LIBUTILS)(panic.o) \
|
|
$(LIBUTILS)(report.o) \
|
|
$(LIBUTILS)(taskcall.o) \
|
|
|
|
|
|
$(LIBUTILS): $(OBJECTS)
|
|
aal cr $@ *.o
|
|
rm *.o
|
|
|
|
$(LIBUTILS)(getuptime.o): getuptime.c
|
|
$(CC1) getuptime.c
|
|
|
|
$(LIBUTILS)(tickdelay.o): tickdelay.c
|
|
$(CC1) tickdelay.c
|
|
|
|
$(LIBUTILS)(get_mon_prm.o): get_mon_prm.c
|
|
$(CC1) get_mon_prm.c
|
|
|
|
$(LIBUTILS)(env_parse.o): env_parse.c
|
|
$(CC1) env_parse.c
|
|
|
|
$(LIBUTILS)(env_prefix.o): env_prefix.c
|
|
$(CC1) env_prefix.c
|
|
|
|
$(LIBUTILS)(env_panic.o): env_panic.c
|
|
$(CC1) env_panic.c
|
|
|
|
$(LIBUTILS)(fkey_ctl.o): fkey_ctl.c
|
|
$(CC1) fkey_ctl.c
|
|
|
|
$(LIBUTILS)(get_proc_nr.o): get_proc_nr.c
|
|
$(CC1) get_proc_nr.c
|
|
|
|
$(LIBUTILS)(panic.o): panic.c
|
|
$(CC1) panic.c
|
|
|
|
$(LIBUTILS)(report.o): report.c
|
|
$(CC1) report.c
|
|
|
|
$(LIBUTILS)(taskcall.o): taskcall.c
|
|
$(CC1) taskcall.c
|
|
|
|
|