You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
429 B

VERSION=0.8
DEBUG=-g # -pg
CFLAGS+=-Wall -O2 -DVERSION=\"${VERSION}\" $(DEBUG)
LDFLAGS=-lgpgme $(DEBUG)
OBJS=nasty.o
all: nasty
nasty: $(OBJS)
$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o nasty
install: nasty
cp nasty /usr/bin
clean:
rm -f $(OBJS) nasty core
package: clean
mkdir nasty-$(VERSION)
cp *.c Makefile readme.txt license.txt nasty-$(VERSION)
tar czf nasty-$(VERSION).tgz nasty-$(VERSION)
rm -rf nasty-$(VERSION)