Makefiled.osx 557 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Mingw debug osx Makefile for pvxio2../
  2. CC = cc
  3. #OPT = -O3
  4. OPT = -g
  5. CFLAGS = $(OPT) -mmacosx-version-min=10.8 -Dunix -D__MAC__ -Wall -Werror=strict-aliasing -I../newinclude
  6. OBJS=pvfileio.o
  7. TARGET=libpvxio2d.a
  8. .c.o:
  9. $(CC) $(CFLAGS) -c $<
  10. all: $(TARGET)
  11. $(TARGET): $(OBJS)
  12. # ar cr -o $(TARGET) $(OBJS)
  13. libtool -static -o $(TARGET) $(OBJS)
  14. ranlib $(TARGET)
  15. clean:
  16. rm -f $(OBJS)
  17. veryclean: clean
  18. rm -f $(TARGET)
  19. install: $(TARGET)
  20. cp $(TARGET) ../../lib
  21. # dependencies
  22. pvfileio.o: ../newinclude/pvfileio.h ../newinclude/pvdefs.h