Small Makefile changes
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Wed, 02 May 2012 20:49:41 +0200
changeset 164 e1f4bba1097a
parent 163 780bf4f348f3
child 165 f551b78c3eee
Small Makefile changes committer: Markus Bröker <mbroeker@largo.homelinux.org>
Makefile
--- 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 $< ...