]> git.tuebingen.mpg.de Git - osl.git/blobdiff - Makefile
Drop dependency on openssl.
[osl.git] / Makefile
index ef12cb86d577d7e98de1396dc01800c3e818f99b..f960d69c25ad0aa668c9db9415d08060adbe4360 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 # where to install
-PREFIX ?:= /usr/local
+PREFIX ?= /usr/local
 libdir := $(PREFIX)/lib
 includedir := $(PREFIX)/include
 bindir := $(PREFIX)/bin
@@ -12,7 +12,9 @@ executables := oslfsck
 man_pages := oslfsck.1
 
 INSTALL := install
-CC := gcc
+ifeq "$(origin CC)" "default"
+        CC := gcc
+endif
 MKDIR := mkdir -p
 RM := rm -f
 LN := ln
@@ -135,13 +137,13 @@ fsck.cmdline.h fsck.cmdline.c: fsck.ggo Makefile
                < $<
 
 oslfsck: $(fsck_objects)
-       $(CC) -o $@ $(fsck_objects) -lcrypto
+       $(CC) -o $@ $(fsck_objects)
 
 oslfsck.1: oslfsck
        help2man -h --detailed-help -N ./$< > $@
 
 $(realname): $(objects)
-       $(CC) $(LDFLAGS) -o $@ $(objects) -lcrypto
+       $(CC) $(LDFLAGS) -o $@ $(objects)
 
 osl_errors.h: errlist
        echo '/** public error codes of the osl library. */' > $@