Makefile
changeset 164 e1f4bba1097a
parent 155 a54dcc86addb
child 169 df7c720bcaa6
equal deleted inserted replaced
163:780bf4f348f3 164:e1f4bba1097a
   108 
   108 
   109 all: $(TARGET)
   109 all: $(TARGET)
   110 
   110 
   111 ncurses: ncurses.o
   111 ncurses: ncurses.o
   112 	@echo Linking $< ...
   112 	@echo Linking $< ...
   113 	@$(CC) $(LDFLAGS) -lncursesw -o $@ $<
   113 	@$(CC) $(LDFLAGS) -o $@ $< -lncursesw
   114 
   114 
   115 numerierung: numerierung.o
   115 numerierung: numerierung.o
   116 	@echo Linking $< ...
   116 	@echo Linking $< ...
   117 	@$(CC) $(LDFLAGS) -o $@ $<
   117 	@$(CC) $(LDFLAGS) -o $@ $<
   118 
   118 
   119 xdemo: xdemo.o
   119 xdemo: xdemo.o
   120 	@echo Linking $< ...
   120 	@echo Linking $< ...
   121 	@$(CC) $(LDFLAGS) -lX11 -o $@ $<
   121 	@$(CC) $(LDFLAGS) -o $@ $< -lX11
   122 
   122 
   123 signals: signals.o
   123 signals: signals.o
   124 	@echo Linking $< ...
   124 	@echo Linking $< ...
   125 	@$(CC) $(LDFLAGS) -o $@ $<
   125 	@$(CC) $(LDFLAGS) -o $@ $<
   126 
   126 
   216 	@echo Linking $< ...
   216 	@echo Linking $< ...
   217 	@$(CC) $(LDFLAGS) -o $@ $< -lcunit -lncurses
   217 	@$(CC) $(LDFLAGS) -o $@ $< -lcunit -lncurses
   218 
   218 
   219 md5: md5.o
   219 md5: md5.o
   220 	@echo Linking $< ...
   220 	@echo Linking $< ...
   221 	@$(CC) $(LDFLAGS) -o $@ $< -lssl
   221 	@$(CC) $(LDFLAGS) -o $@ $< -lssl -lcrypto
   222 
   222 
   223 myprintf: myprintf.o
   223 myprintf: myprintf.o
   224 	@echo Linking $< ...
   224 	@echo Linking $< ...
   225 	@$(CC) $(LDFLAGS) -o $@ $<
   225 	@$(CC) $(LDFLAGS) -o $@ $<
   226 
   226 
   254 
   254 
   255 database: database.c
   255 database: database.c
   256 	@echo Compiling $< ...
   256 	@echo Compiling $< ...
   257 	@$(CC) -c -I$(shell pg_config --includedir) $<
   257 	@$(CC) -c -I$(shell pg_config --includedir) $<
   258 	@echo Linking $< ...
   258 	@echo Linking $< ...
   259 	@$(CC) $(LDLAGS) -lpq -o $@ $@.o
   259 	@$(CC) $(LDLAGS) -o $@ $@.o -lpq
   260 
   260 
   261 gauss: gauss.o
   261 gauss: gauss.o
   262 	@echo Linking $< ...
   262 	@echo Linking $< ...
   263 	@$(CC) $(LDFLAGS) -o $@ $<
   263 	@$(CC) $(LDFLAGS) -o $@ $<
   264 
   264 
   298 	@echo Linking $< ...
   298 	@echo Linking $< ...
   299 	@$(CPP) $(LDFLAGS) -o $@ $<
   299 	@$(CPP) $(LDFLAGS) -o $@ $<
   300 
   300 
   301 base10: base10.o
   301 base10: base10.o
   302 	@echo Linking $< ...
   302 	@echo Linking $< ...
   303 	@$(CC) $(LDFLAGS) -lm -o $@ $<
   303 	@$(CC) $(LDFLAGS) -o $@ $< -lm
   304 
   304 
   305 files: files.o
   305 files: files.o
   306 	@echo Linking $< ...
   306 	@echo Linking $< ...
   307 	@$(CC) $(LDFLAGS) -o $@ $<
   307 	@$(CC) $(LDFLAGS) -o $@ $<
   308 
   308