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.

54 lines
1.8 KiB

21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
  1. all: t byte.a fmt.a scan.a str.a uint.a open.a stralloc.a unix.a socket.a buffer.a
  2. VPATH=str:byte:fmt:scan:uint:open:stralloc:unix:socket:buffer
  3. CC=egcc
  4. #CFLAGS=-I. -pipe -Wall -Os -march=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
  5. CFLAGS=-I. -I../dietlibc/include -pipe -Wall -g #-Os -march=athlon -mcpu=athlon -fomit-frame-pointer -fschedule-insns2
  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. $(BYTE_OBJS): byte.h
  19. $(FMT_OBJS): fmt.h
  20. $(SCAN_OBJS): scan.h
  21. $(STR_OBJS): str.h
  22. $(UINT_OBJS): uint16.h uint32.h
  23. $(STRA_OBJS): stralloc.h
  24. $(SOCKET_OBJS): socket.h
  25. $(BUFFER_OBJS): buffer.h
  26. byte.a: $(BYTE_OBJS)
  27. fmt.a: $(FMT_OBJS)
  28. scan.a: $(SCAN_OBJS)
  29. str.a: $(STR_OBJS)
  30. uint.a: $(UINT_OBJS)
  31. open.a: $(OPEN_OBJS)
  32. stralloc.a: $(STRA_OBJS)
  33. unix.a: $(UNIX_OBJS)
  34. socket.a: $(SOCKET_OBJS)
  35. buffer.a: $(BUFFER_OBJS)
  36. %.a:
  37. ar cr $@ $^
  38. t: t.o socket.a stralloc.a fmt.a scan.a uint.a open.a buffer.a str.a \
  39. byte.a
  40. gcc -g -o $@ $^
  41. .PHONY: clean tar
  42. clean:
  43. rm -f *.o *.a core t
  44. tar:
  45. cd .. && tar cf libowfat.tar.bz2 libowfat --use=bzip2 --exclude CVS