Do not specify LDLAGS twice.
[osl.git] / Makefile
index 0a44111620483a6989690843c43495ae630083b1..872d4d19ee07c3cdd879c7000bd03e0dbce69552 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -97,13 +97,13 @@ Makefile.deps: $(wildcard *.c *.h)
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
 
 $(realname): $(objects)
-       $(CC) $(LDFLAGS) -o $@ $(objects) $(LDFLAGS) -lcrypto
+       $(CC) $(LDFLAGS) -o $@ $(objects) -lcrypto
 
 osl_errors.h: errlist
        sed -e 's/\([A-Z_]*\)   .*/     E_OSL_\1/' \
-               -e '1s/^/enum osl_errors {\n/1' \
+               -e '1s/^/enum osl_errors {/1' \
                -e '$$!s/$$/,/g' \
-               -e '$$s/$$/\n};/1' $< > $@
+               -e '$$s/$$/};/1' $< > $@
 
 errtab.h: errlist
        sed -e 's/^\([A-Z_]*\)\s*\(.*\)/_S(E_OSL_\1, \2)/g' $< > $@