INCTCLDIR = /usr/local/include CC = gcc #CFLAGS = -g -Wall -I$(INCTCLDIR) -I/usr/X11R6/include -L/usr/X11R6/lib CFLAGS = -O2 -I$(INCTCLDIR) -I/usr/X11R6/include -L/usr/X11R6/lib SHFLAGS = -fPIC -shared all:: libimgproc.so imgproc.o: imgproc.c $(CC) -c $(CFLAGS) $(SHFLAGS) $? libimgproc.so: imgproc.o $(LD) -Bshareable -Bforcearchive $? -o $@ clean: imgproc.o libimgproc.so rm -f $?