.PHONY: clean install
./w3b: ./w3b.o $(RESFILE)
- $(CC) -o $@ -L ../../Library $^ -lw3
+ $(CC) -g -o $@ -L ../../Library $^ -lw3
./%.o: ./%.c
- $(CC) -c -o $@ -I ../../Library $<
+ $(CC) -g -c -o $@ -I ../../Library $<
../libw3.res:
$(MAKE) -C .. ./libw3.res WINDRES=$(WINDRES)
}
while(true) { /* Loop */
if(c != '\n' && c != '\r') {
- printf("(O)pen, (Q)uit? ");
+ printf("(O)pen, (Q)uit");
+ if(acc) printf(", (P)rint all");
+ printf("? ");
fflush(stdout);
}
if(scanf("%c", &c) < 0) break;
scanf("%s", url);
acc = false;
break;
+ case 'p':
+ if(acc){
+ }
+ break;
case '\n':
case '\r':
break;
printf("What do you mean?\n");
break;
}
- if(!acc) {
+ if(!acc && url != NULL) {
access_site(url);
acc = true;
}
.PHONY: clean install
./fetch: ./fetch.c $(RESFILE)
- $(CC) -o $@ -I ../../Library -L ../../Library $^ -lw3
+ $(CC) -g -o $@ -I ../../Library -L ../../Library $^ -lw3
../libw3.res:
$(MAKE) -C .. ./libw3.res WINDRES=$(WINDRES)