links2

links 2.15+ fork
git clone git://git.codemadness.org/links2
Log | Files | Refs | README

commit e4d81d256cf649d111ae9f075c3708f2298cf91c
parent b3c111964a23882cc953e4716d4740ca50a31075
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  4 May 2018 13:12:26 +0200

fix graphics/ build/Makefile

Diffstat:
TODO_SEND_UPSTREAM | 5+++++
af_unix.c | 2--
graphics/Makefile | 16++++++++--------
graphics/improcess.c | 2++
4 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/TODO_SEND_UPSTREAM b/TODO_SEND_UPSTREAM @@ -0,0 +1,5 @@ +- graphics/Makefile + - LDFLAGS typo + - gcc -> $(CC) +- graphics/improcess.c + #include <string.h> for strcmp(). diff --git a/af_unix.c b/af_unix.c @@ -5,7 +5,6 @@ #include "links.h" - int s_unix_fd = -1; int bind_to_af_unix(unsigned char *name) @@ -16,4 +15,3 @@ int bind_to_af_unix(unsigned char *name) void af_unix_close(void) { } - diff --git a/graphics/Makefile b/graphics/Makefile @@ -1,6 +1,6 @@ -CFLAGS=-g -Wall -O2 +CFLAGS=-g -Wall -O2 -I/usr/local/include -I/usr/X11R6/include #-Wno-pointer-sign -LDFLAGS= +LDFLAGS= -L/usr/local/lib -L/usr/X11R6/lib all: improcess genps pbm2png clip generate_font arrow @@ -8,19 +8,19 @@ clean: rm -f improcess genps core pbm2png clip generate_font arrow improcess: improcess.c - gcc -o improcess improcess.c $(CFLAGS) $(LDFLAFGS) -lpng -lz -lm + $(CC) -o improcess improcess.c $(CFLAGS) $(LDFLAGS) -lpng -lz -lm pbm2png: pbm2png.c - gcc -o pbm2png pbm2png.c $(CFLAGS) $(LDFLAGS) -lpng -lz -lm + $(CC) -o pbm2png pbm2png.c $(CFLAGS) $(LDFLAGS) -lpng -lz -lm genps: genps.c - gcc -o genps genps.c $(CFLAGS) $(LDFLAGS) + $(CC) -o genps genps.c $(CFLAGS) $(LDFLAGS) clip: clip.c - gcc -o clip clip.c $(CFLAGS) $(LDFLAGS) + $(CC) -o clip clip.c $(CFLAGS) $(LDFLAGS) generate_font: generate_font.c - gcc -o generate_font generate_font.c $(CFLAGS) $(LDFLAGS) -lpng -lz -lm + $(CC) -o generate_font generate_font.c $(CFLAGS) $(LDFLAGS) -lpng -lz -lm arrow: arrow.c - gcc -o arrow arrow.c $(CFLAGS) $(LDFLAGS) -lpng -lz -lm + $(CC) -o arrow arrow.c $(CFLAGS) $(LDFLAGS) -lpng -lz -lm diff --git a/graphics/improcess.c b/graphics/improcess.c @@ -15,6 +15,8 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> + #include <png.h> int *image;