From e5236e0e3e4e5286bb9cf47e43c5d536cc56e19b Mon Sep 17 00:00:00 2001 From: le vieux Date: Sun, 8 Nov 2020 20:42:27 +0100 Subject: [PATCH] patched Makefile for Fedora --- funcs/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/funcs/Makefile b/funcs/Makefile index 4e398651..6c6455d7 100644 --- a/funcs/Makefile +++ b/funcs/Makefile @@ -2,6 +2,7 @@ COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0 DEPS = ../floatimg.h Makefile + OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \ fimg-libpnm.o rampes.o sfx0.o geometry.o rotate.o \ equalize.o fimg-fits.o saturation.o histogram.o \ @@ -11,9 +12,12 @@ OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \ #--------------------------------------------------------------- t: t.c $(DEPS) ../libfloatimg.a - gcc $(COPT) $< ../libfloatimg.a -lnetpbm -lpnglite -lcfitsio \ - -ltiff \ - -lz -lm -o $@ + gcc $(COPT) $< \ + -I/usr/include/netpbm/ \ + -I/usr/include/cfitsio/ \ + ../libfloatimg.a -lnetpbm -lpnglite -lcfitsio \ + -ltiff \ + -lz -lm -o $@ #--------------------------------------------------------------- @@ -30,10 +34,10 @@ fimg-tiff.o: fimg-tiff.c $(DEPS) gcc $(COPT) -c $< fimg-fits.o: fimg-fits.c $(DEPS) - gcc $(COPT) -c $< + gcc $(COPT) -I/usr/include/cfitsio/ -c $< fimg-libpnm.o: fimg-libpnm.c $(DEPS) - gcc $(COPT) -c $< + gcc $(COPT) -I/usr/include/netpbm -c $< misc-plots.o: misc-plots.c $(DEPS) gcc $(COPT) -c $<