head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2005.02.26.06.41.44;	author jkoshy;	state Exp;
branches;
next	;


desc
@@


1.1
log
@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
@
text
@--- 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
@
