1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/lang/moscow_ml/files/patch-dynlibs::crypt::Makefile
Joseph Koshy 3fc071f075 Update to v201:
- Add RESTRICTED (licensing issues).
  - Install stuff in standard places.
  - Install examples.
  - Install readmes/licenses.
  - Respect NOPORTDOCS.
  - New MAINTAINER.

PR:		ports/62704
Submitted by:	debios@diku.dk
2005-02-26 06:41:44 +00:00

28 lines
764 B
Plaintext

--- dynlibs/crypt/Makefile.orig Fri Feb 6 09:30:42 2004
+++ dynlibs/crypt/Makefile Fri Feb 6 09:32:47 2004
@@ -1,20 +1,16 @@
# Makefile for Moscow ML dynamic libraries: the crypt example
-include ../../Makefile.inc
-
-OPTS=-fno-defer-pop
-CFLAGS=-Dunix -O2 $(OPTS) $(ADDDYNLIBCFLAGS) -I$(INCDIR)
-BASELIBS=-lm -ldl
+CFLAGS += -Dunix -fno-defer-pop -fPIC
+INC += -I/usr/local/include/mosml
all: libcrypt.so
@echo "Now execute 'mosml crypt.sml' to test the C function"
crypt.o: crypt.c
- $(CC) $(CFLAGS) -c -o crypt.o crypt.c
+ $(CC) $(CFLAGS) $(INC) -c -o crypt.o crypt.c
libcrypt.so: crypt.o
- $(DYNLD) -lcrypt -o libcrypt.so crypt.o
-# $(DYNLD) -o libcrypt.so crypt.o
+ $(LD) -shared -o libcrypt.so -lcrypt crypt.o
clean:
rm -f *.o