Makefile
changeset 164 e1f4bba1097a
parent 155 a54dcc86addb
child 169 df7c720bcaa6
--- a/Makefile
+++ b/Makefile
@@ -110,7 +110,7 @@
 
 ncurses: ncurses.o
 	@echo Linking $< ...
-	@$(CC) $(LDFLAGS) -lncursesw -o $@ $<
+	@$(CC) $(LDFLAGS) -o $@ $< -lncursesw
 
 numerierung: numerierung.o
 	@echo Linking $< ...
@@ -118,7 +118,7 @@
 
 xdemo: xdemo.o
 	@echo Linking $< ...
-	@$(CC) $(LDFLAGS) -lX11 -o $@ $<
+	@$(CC) $(LDFLAGS) -o $@ $< -lX11
 
 signals: signals.o
 	@echo Linking $< ...
@@ -218,7 +218,7 @@
 
 md5: md5.o
 	@echo Linking $< ...
-	@$(CC) $(LDFLAGS) -o $@ $< -lssl
+	@$(CC) $(LDFLAGS) -o $@ $< -lssl -lcrypto
 
 myprintf: myprintf.o
 	@echo Linking $< ...
@@ -256,7 +256,7 @@
 	@echo Compiling $< ...
 	@$(CC) -c -I$(shell pg_config --includedir) $<
 	@echo Linking $< ...
-	@$(CC) $(LDLAGS) -lpq -o $@ $@.o
+	@$(CC) $(LDLAGS) -o $@ $@.o -lpq
 
 gauss: gauss.o
 	@echo Linking $< ...
@@ -300,7 +300,7 @@
 
 base10: base10.o
 	@echo Linking $< ...
-	@$(CC) $(LDFLAGS) -lm -o $@ $<
+	@$(CC) $(LDFLAGS) -o $@ $< -lm
 
 files: files.o
 	@echo Linking $< ...