If your contracting work is "company X hired me to write software Y" then any of your expenses (salaries, etc.) are normal expenses. For company X, Y is probably R&D (or a capital asset) and need to be amortized, as #2.
Just like if Ford hires you to build a factory - the amount you pay the plumber is a regular expense, but the bill to Ford is for a capital asset.
Just like if Ford hires you to build a factory - the amount you pay the plumber is a regular expense, but the bill to Ford is for a capital asset.