Created
September 25, 2019 19:24
-
-
Save javawolfpack/b44065b86bfb794c046c6383d170c322 to your computer and use it in GitHub Desktop.
Two Target Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION = 1 | |
hello = ./hello | |
hello2 = ./hello2 | |
CC = gcc | |
CXX = g++ | |
CFLAGS = -Wall -O -g | |
FILES = $(hello) $(hello2) | |
all: $(FILES) | |
hello: | |
$(CC) $(CFLAGS) -o hello hello.c | |
hello2: | |
$(CC) $(CFLAGS) -O1 -o hello2 hello.c | |
clean: | |
rm -f $(FILES) *.o |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment