Makefile 554 B

1234567891011121314151617181920212223242526272829303132
  1. AR =ar
  2. CC =gcc
  3. CFLAGS =-O6
  4. .c.o:
  5. $(CC) $(CFLAGS) -c -o $*.o $<
  6. all: libvga.a vgatest dumpreg runx
  7. libvga.a: vga.o
  8. $(AR) rcs libvga.a vga.o
  9. cp libvga.a /usr/lib
  10. cp vga.h /usr/include
  11. vgatest: libvga.a vgatest.o
  12. $(CC) $(CFLAGS) -o vgatest vgatest.o -lvga
  13. dumpreg: libvga.a dumpreg.o
  14. $(CC) $(CFLAGS) -o dumpreg dumpreg.o -lvga
  15. runx: libvga.a runx.o
  16. $(CC) $(CFLAGS) -o runx runx.o -ltermcap -lvga
  17. clean:
  18. rm -f *.o libvga.a vgatest dumpreg runx
  19. vga.o: vga.c vga.h
  20. vgatest.o: vgatest.c vga.h
  21. dumpreg.o: dumpreg.c vga.h
  22. runx.o: runx.c vga.h