-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (40 loc) · 1.25 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This file is part of SHOMS.
#
# Copyright (C) 2014-2015, UT-Battelle, LLC.
#
# This product includes software produced by UT-Battelle, LLC under Contract No.
# DE-AC05-00OR22725 with the Department of Energy.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the New BSD 3-clause software license (LICENSE).
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# LICENSE for more details.
#
# For more information please contact the SHOMS developers at:
SHMEM12 = 1
OSHCC=oshcc
OSHLD=$(OSHCC)
CC=gcc
CPPFLAGS=-Isrc/include/ #-DDEBUG #-DNDEBUG
CFLAGS=-g -std=c99 -Os -Wall
OBJECTS=src/main.o src/test_list.o src/tests.o src/orbtimer.o src/process_parameters.o
ifneq ($(SHMEM12), 0)
CFLAGS += -DUSE_SHMEM12
endif
.c.o:
$(OSHCC) -c $(CPPFLAGS) $(CFLAGS) $(OSHFLAGS) -o $@ $<
all: shoms
bin:
mkdir bin
src/main.o: src/include/shoms.h
src/test_list.o: src/include/shoms.h
src/tests.o: src/include/shoms.h
src/process_parameters.o: src/include/shoms.h
shoms: $(OBJECTS) bin
$(OSHLD) -o bin/shoms $(OBJECTS)
clean:
rm -f $(OBJECTS) bin/shoms