1 # Makefile for memory driver (MEMORY)
12 # programs, flags, etc.
16 LDFLAGS
= -i
-L..
/libdriver
19 # imgrd_s.s is the ACK assembler version of the ramdisk. For more portability,
20 # use the C version imgrd.c. However, the C compiler takes too much memory
25 OBJ
= memory.o
$(IMGRD
)
30 $(DRIVER
): ramdisk_image
$(OBJ
)
31 $(CC
) -o
$@
$(LDFLAGS
) $(OBJ
) $(LIBS
)
32 install -S
8k
$(DRIVER
)
34 imgrd.o
: ramdisk
/image.c
36 imgrd_s.o
: ramdisk
/image.s
37 TMPDIR
=/usr
/tmp
$(CC
) -T
/usr
/tmp
-c imgrd_s.s
42 # install with other drivers
43 install: /usr
/sbin
/$(DRIVER
)
44 /usr
/sbin
/$(DRIVER
): $(DRIVER
)
45 install -o root
-cs
$?
$@
47 # clean up local files
49 rm -f
$(DRIVER
) *.o
*.bak
50 cd ramdisk
&& make
clean
53 mkdep
"$(CC) -E $(CPPFLAGS)" memory.c ..
/libdriver
/*.c
> .depend
54 cd ramdisk
&& make depend
56 # Include generated dependencies.