Makefile 419 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# sample makefile for the C PPTemplate
# j. behrens 06/2021

CC = gcc
#
# THIS OPTION IS FOR THE DATA PARALLEL VERSION (-mp)
CCFLAGS = -fopenmp -I/opt/local/include

DATLIBS= -lgomp -lm

OBJECTS = \
Hello.o 


# default make

all::
	@make Hello
	@make clear

# make object files

.c.o:
	${CC} ${CCFLAGS} -c $<

# make target (executable)

Hello: ${OBJECTS}
	${CC} ${CCFLAGS} -o $@ ${OBJECTS} ${LIBS}

clear::
	@rm *.o