You cannot actually "make" gags in ToonTown, but you can obtain them in a couple of ways. The main method is to buy them from the Gag Shop.
Alternatively, if you purchase the gardening kit for your estate, you can plant gag trees that produce gags over time. Either route will help you stock up for battles against the Cogs.