C_source = string.c stdio.c printf.c qdivrem.c udivdi3.c umoddi3.c OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source))) # other implicit rules %.o : %.c $(CC) -c -D__KERNEL__ $(CFLAGS) -o $@ $< default: $(OBJS) all: $(OBJS) clean: $(RM) *.o *~ $(NAME) depend: $(CC) -MM $(CFLAGS) $(C_source) $(CPP_source) > Makefile.dep -include Makefile.dep # DO NOT DELETE