Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

62 lines
2.0 KiB

  1. all: t byte.a fmt.a scan.a str.a uint.a open.a stralloc.a unix.a socket.a buffer.a mmap.a libowfat.a
  2. VPATH=str:byte:fmt:scan:uint:open:stralloc:unix:socket:buffer:mmap
  3. CC=gcc
  4. #CFLAGS=-I. -pipe -Wall -Os -march=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
  5. CFLAGS=-I. -I../dietlibc/include -pipe -Wall -Os -malign-functions=2 -fschedule-insns2 -g
  6. #CFLAGS=-I../dietlibc/include -I. -pipe -Wall -Os -march=pentiumpro -mcpu=athlon -fomit-frame-pointer -fschedule-insns2 -Wall
  7. #CFLAGS=-I../dietlibc/include -pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
  8. BYTE_OBJS=$(patsubst byte/%.c,%.o,$(wildcard byte/*.c))
  9. FMT_OBJS=$(patsubst fmt/%.c,%.o,$(wildcard fmt/*.c))
  10. SCAN_OBJS=$(patsubst scan/%.c,%.o,$(wildcard scan/*.c))
  11. STR_OBJS=$(patsubst str/%.c,%.o,$(wildcard str/*.c))
  12. UINT_OBJS=$(patsubst uint/%.c,%.o,$(wildcard uint/*.c))
  13. OPEN_OBJS=$(patsubst open/%.c,%.o,$(wildcard open/*.c))
  14. STRA_OBJS=$(patsubst stralloc/%.c,%.o,$(wildcard stralloc/*.c))
  15. UNIX_OBJS=$(patsubst unix/%.c,%.o,$(wildcard unix/*.c))
  16. SOCKET_OBJS=$(patsubst socket/%.c,%.o,$(wildcard socket/*.c))
  17. BUFFER_OBJS=$(patsubst buffer/%.c,%.o,$(wildcard buffer/*.c))
  18. MMAP_OBJS=$(patsubst mmap/%.c,%.o,$(wildcard mmap/*.c))
  19. $(BYTE_OBJS): byte.h
  20. $(FMT_OBJS): fmt.h
  21. $(SCAN_OBJS): scan.h
  22. $(STR_OBJS): str.h
  23. $(UINT_OBJS): uint16.h uint32.h
  24. $(STRA_OBJS): stralloc.h
  25. $(SOCKET_OBJS): socket.h
  26. $(BUFFER_OBJS): buffer.h
  27. $(MMAP_OBJS): mmap.h
  28. byte.a: $(BYTE_OBJS)
  29. fmt.a: $(FMT_OBJS)
  30. scan.a: $(SCAN_OBJS)
  31. str.a: $(STR_OBJS)
  32. uint.a: $(UINT_OBJS)
  33. open.a: $(OPEN_OBJS)
  34. stralloc.a: $(STRA_OBJS)
  35. unix.a: $(UNIX_OBJS)
  36. socket.a: $(SOCKET_OBJS)
  37. buffer.a: $(BUFFER_OBJS)
  38. mmap.a: $(MMAP_OBJS)
  39. libowfat.a: $(BYTE_OBJS) $(FMT_OBJS) $(SCAN_OBJS) $(STR_OBJS) \
  40. $(UINT_OBJS) $(OPEN_OBJS) $(STRA_OBJS) $(UNIX_OBJS) $(SOCKET_OBJS) \
  41. $(BUFFER_OBJS) $(MMAP_OBJS)
  42. %.a:
  43. ar cr $@ $^
  44. t: t.o socket.a stralloc.a fmt.a scan.a uint.a mmap.a open.a buffer.a \
  45. str.a byte.a
  46. gcc -g -o $@ $^
  47. .PHONY: clean tar
  48. clean:
  49. rm -f *.o *.a core t
  50. tar:
  51. cd .. && tar cf libowfat.tar.bz2 libowfat --use=bzip2 --exclude CVS