Created
October 22, 2009 22:54
-
-
Save mhansen/216430 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- oldsrc/drivers/memory/Makefile 2009-10-22 18:26:50.019711000 +1300 | |
| +++ src/drivers/proc/Makefile 2009-10-22 18:07:41.427015300 +1300 | |
| @@ -1,58 +1,37 @@ | |
| -# Makefile for memory driver (MEMORY) | |
| -DRIVER = memory | |
| +# Makefile for proc driver (PROC) | |
| +DRIVER = proc | |
| # directories | |
| u = /usr | |
| i = $u/include | |
| -s = $i/sys | |
| -m = $i/minix | |
| -b = $i/ibm | |
| -d = .. | |
| # programs, flags, etc. | |
| MAKE = exec make | |
| CC = exec cc | |
| CFLAGS = -I$i | |
| LDFLAGS = -i -L../libdriver | |
| LIBS = -ldriver -lsys | |
| -# imgrd_s.s is the ACK assembler version of the ramdisk. For more portability, | |
| -# use the C version imgrd.c. However, the C compiler takes too much memory | |
| -# compiling imgrd.c. | |
| -IMGRD=imgrd_s.o | |
| -#IMGRD=imgrd.c | |
| - | |
| -OBJ = memory.o allocmem.o $(IMGRD) | |
| +OBJ = proc.o get_bootenv.o get_hz.o get_uptime.o get_cpuinfo.o get_processes.o get_bootimage.o | |
| # build local binary | |
| all build: $(DRIVER) | |
| -$(DRIVER): ramdisk_image $(OBJ) | |
| +$(DRIVER): $(OBJ) | |
| $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS) | |
| install -S 8k $(DRIVER) | |
| -imgrd.o: ramdisk/image.c | |
| - | |
| -imgrd_s.o: ramdisk/image.s | |
| - TMPDIR=/usr/tmp $(CC) -T /usr/tmp -c imgrd_s.s | |
| - | |
| -ramdisk_image: | |
| - cd ramdisk && make | |
| - | |
| # install with other drivers | |
| install: /usr/sbin/$(DRIVER) | |
| /usr/sbin/$(DRIVER): $(DRIVER) | |
| install -o root -cs $? $@ | |
| # clean up local files | |
| clean: | |
| rm -f $(DRIVER) *.o *.bak | |
| - cd ramdisk && make clean | |
| depend: | |
| - mkdep "$(CC) -E $(CPPFLAGS)" memory.c ../libdriver/*.c > .depend | |
| - cd ramdisk && make depend | |
| + mkdep "$(CC) -E $(CPPFLAGS)" proc.c ../libdriver/*.c > .depend | |
| # Include generated dependencies. | |
| include .depend | |
| - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment