1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
# (c) Victor Yodaiken 1998, Released under GPL
all: rtl_time.o rtl_sched.o
include rtl.mk
include ../.config
depend: rtl_sched.o
$(CC) ${INCLUDE} ${CFLAGS} -M rtl_sched.c > .depends
rtl_sched.o: rtl_sched_tmp.o switch.o rtl_compat.o
ld -r -o rtl_sched.o rtl_sched_tmp.o switch.o rtl_compat.o
rtl_sched_tmp.o: rtl_sched.c ../include/rtl_sched.h
$(CC) ${INCLUDE} ${CFLAGS} -o rtl_sched_tmp.o -c rtl_sched.c
rtl_compat.o: rtl_compat.c ../include/rtl_sched.h
$(CC) ${INCLUDE} ${CFLAGS} -o rtl_compat.o -c rtl_compat.c
switch.o: $(ARCH)/switch.c ../include/rtl_sched.h $(ARCH)/switch.c
$(CC) ${INCLUDE} ${CFLAGS} -o switch.o -c $(ARCH)/switch.c
rtl_time_tmp.o: $(ARCH)/rtl_time.c ../include/arch/rtl_time.h ../include/rtl_time.h
$(CC) ${INCLUDE} ${CFLAGS} -c -o $@ $<
rtl_time_common.o: rtl_time_common.c ../include/arch/rtl_time.h ../include/rtl_time.h
$(CC) ${INCLUDE} ${CFLAGS} -c -o $@ $<
rtl_time.o: rtl_time_tmp.o rtl_time_common.o
ld -r -o rtl_time.o rtl_time_tmp.o rtl_time_common.o
install: rtl_sched.o
install -c -m 644 rtl_sched.o ${RTL_DIR}/modules
clean:
rm -f *.o
|