Skip to primary content

chopsake

chopsake

Main menu

  • HOME
  • ABOUT
  • PRIVACY

Post navigation

← Previous Next →

Makefile with Multiple Targets

Posted on 28 Nov 2010 by chopsake

# Sample simple Makefile for multiple targets (exec1, exec2)

all : exec1 exec2

exec1 : exec1.cpp
       g++ -ansi -Wall -f -o exec1 exec1.cpp

exec2 : exec2.cpp
       g++ -ansi -Wall -f -o exec2 exec2.cpp

clean :
       rm -f exec1 exec2

This entry was posted in Software Engineering and tagged make, Makefile, multiple targets, programming, software by chopsake. Bookmark the permalink.
privacy policy