diff --git a/src/Makefile b/src/Makefile index 16dd1ed..a024f10 100644 --- a/src/Makefile +++ b/src/Makefile @@ -45,6 +45,16 @@ clean: %.o : %.c @echo -e "$(CC)\t$@" @$(CC) $(CFLAGS) -c $< $(INCLUDES) $(LIBINC) $(LIBS) $(DEFINES) -o $*.o - + +protos: $(CFILES) + @rm -f nzg_proto.h + @touch nzg_proto.h + @( echo -e "#ifndef _NZG_PROTO"; \ + echo -e "#define _NZG_PROTO 1\n"; \ + cproto *.c ; \ + echo -e "\n#endif") > nzg_proto.t + @mv nzg_proto.t nzg_proto.h + + edit: gvim *.c *.h