CC=gcc #LIBS=-lexpect -lpthread LIBS=-lexpect CFLAGS=-Wall STATIC=-static all: p-run p-run: p-run.o $(CC) $(CFLAGS) $(LIBS) -o $@ $< # strip $@ .c.o: $(CC) $(CFLAGS) -c $< dist: tar tar: @echo "Creating tar.bz2" @(cd .. ; \ tar cjf p-run/p-run.tar.bz2 \ p-run/p-run.c \ p-run/README \ p-run/TODO \ p-run/Makefile \ p-run/COPYING \ ) @echo "Distribution file created as p-run.tar.bz2" clean: @rm -f p-run *.o