Makefile-openbsd-x86-64.gmake 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright (c) 1999, 2013 Tanuki Software, Ltd.
  2. # http://www.tanukisoftware.com
  3. # All rights reserved.
  4. #
  5. # This software is the proprietary information of Tanuki Software.
  6. # You shall use it only in accordance with the terms of the
  7. # license agreement you entered into with Tanuki Software.
  8. # http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
  9. CC = ${CC} -Wall -fPIC -pedantic -DOPENBSD -DJSW64 -I${LOCALBASE}/include -L${LOCALBASE}/lib -liconv -DUNICODE -D_UNICODE
  10. INCLUDE=$(JAVA_HOME)/include
  11. CFLAGS = ${CFLAGS} -I$(INCLUDE) -I$(INCLUDE)/openbsd
  12. wrapper_SOURCE = wrapper.c wrapperinfo.c wrappereventloop.c wrapper_unix.c property.c logger.c wrapper_file.c wrapper_i18n.c
  13. libwrapper_so_OBJECTS = wrapper_i18n.o wrapperjni_unix.o wrapperinfo.o wrapperjni.o
  14. BIN = ../../bin
  15. LIB = ../../lib
  16. all: init wrapper libwrapper.so
  17. clean:
  18. rm -f *.o
  19. cleanall: clean
  20. rm -rf *~ .deps
  21. rm -f $(BIN)/wrapper $(LIB)/libwrapper.so
  22. init:
  23. if test ! -d .deps; then mkdir .deps; fi
  24. wrapper: $(wrapper_SOURCE)
  25. $(CC) $(wrapper_SOURCE) -lm -pthread -o $(BIN)/wrapper
  26. libwrapper.so: $(libwrapper_so_OBJECTS)
  27. $(CC) -shared $(libwrapper_so_OBJECTS) -o $(LIB)/libwrapper.so
  28. #%.o: %.c
  29. # $(COMPILE) -c $(DEFS) $<