source: soft/giet_vm/applications/rosenfeld/include/Makefile_OMP @ 817

Last change on this file since 817 was 772, checked in by meunier, 9 years ago
  • Ajout de l'application rosenfeld
  • Changement du nom du flag O_CREATE en O_CREAT
File size: 3.1 KB
Line 
1# -------------------- #
2# -- Label Makefile -- #
3# -------------------- #
4
5# Copyright (c) 2008-2008 Lionel Lacassagne
6# with a little help of Stephane Piskorski and Joel Falcou
7
8# -- Lile list ----------
9FILE_ECC = ecc_common.c ecc_features.c ecc_generation.c ecc_lsl.c
10
11FILE_ECC_ALGO  = ecc_grana.c ecc_hcs.c  ecc_hcs2.c  ecc_minmax.c ecc_mpar32.c ecc_rcm.c ecc_rosenfeld.c ecc_selkow.c ecc_suzuki.c
12FILE_ECCX_ALGO = eccx_grana.c eccx_hcs2.c eccx_mpar32.c eccx_rem.c eccx_rosenfeld.c eccx_selkow.c eccx_suzuki.c
13FILE_ECCP_ALGO = eccp_grana.c eccp_hcs.c eccp_hcs2.c eccp_rcm.c eccp_rosenfeld.c eccp_suzuki.c
14
15FILE_LSL = lsl.c lsl32.c lsl32_par.c lsl32_par1.c lsl32_par2.c
16#FILE_REGION = region32.c region32_algo.c region32_par1.c region32_par2.c region32_par_features.c region32_rosenfeld.c
17FILE_REGION = region32_par1.c region32_par2.c region32_par_features.c region32_rosenfeld.c region32.c region32_algo.c
18FILE_MISC = bmpNR.c histogramNR.c lutNR.c mt19937.c palette.c util.c str_ext.c
19FILE_TEST = ecc_features_test.c ecc_test.c ecc_test_cabaret.c lsl32_test.c region32_test.c
20FILE_MAIN = ecc_main.c
21FILE =  $(FILE_ECC) $(FILE_ECC_ALGO) $(FILE_ECCX_ALGO) $(FILE_ECCP_ALGO) $(FILE_LSL) $(FILE_REGION) $(FILE_MISC) $(FILE_TEST) $(FILE_MAIN)
22
23
24# -- Paths ----------
25SRC_PATH = src
26OBJ_PATH = obj
27EXE_PATH = exe
28INC_PATH = include
29
30#Home
31LIB_LIB_PATH = -L/Users/lacas/Code/NRC2/lib
32LIB_INC_PATH = -I/Users/lacas/Code/NRC2/include
33
34
35# -- OS ----------
36#OS = MACH_OSX
37#OS = POSIX6
38OS = INTEL_CYCLE
39
40# -- Macros ----------
41CC = gcc
42CC = icc
43AR = ar -rc
44
45# -- Flags ----------
46# -fast: uniquement GCC-Apple
47C_DEBUG_FLAGS = -O0
48C_OPTIMISATION_FLAGS = -std=c99 -O3 -fstrict-aliasing -ipo
49C_OPTIMISATION_FLAGS = -std=c99 -O3 -fstrict-aliasing
50# -fprefetch-loop-arrays pas avec ICC
51C_ARCH_FLAGS = -xSSE4.2 -vec_report0 -openmp -openmp-report2
52C_ARCH_FLAGS = -xSSE4.2 -no-vec -openmp  -openmp-report2 -DOPENMP
53C_OS_FLAGS = -D$(OS)
54C_CONFIG_FLAGS = -D$(CONFIG)
55C_INC_FLAGS = -I$(INC_PATH)
56
57CFLAGS = $(C_DEBUG_FLAGS) $(C_ARCH_FLAGS) $(C_OS_FLAGS) $(C_CONFIG_FLAGS) $(C_INC_FLAGS) $(LIB_INC_PATH)
58CFLAGS = $(C_OPTIMISATION_FLAGS) $(C_ARCH_FLAGS) $(C_OS_FLAGS) $(C_CONFIG_FLAGS) $(C_INC_FLAGS) $(LIB_INC_PATH)
59
60LDFLAGS = $(C_DEBUG_FLAGS) $(C_ARCH_FLAGS) $(C_OS_FLAGS) $(C_CONFIG_FLAGS)$(C_INC_FLAGS) $(LIB_LIB_PATH)
61LDFLAGS = $(C_OPTIMISATION_FLAGS) $(C_ARCH_FLAGS) $(C_OS_FLAGS) $(C_CONFIG_FLAGS)$(C_INC_FLAGS) $(LIB_LIB_PATH)
62
63# -- Config ----------
64# if CONFIG = CLI  (Command Line Interface, no Apple Framework)
65
66CONFIG = CLI
67
68# -- Final product ----------
69PRODUCT   = labeling.exe
70
71# -- src and obj List ----------
72SRC = $(addprefix ${SRC_PATH}/, $(FILE))
73OBJ = $(addprefix ${OBJ_PATH}/, $(addsuffix .o, $(basename $(FILE))))
74
75# -- Base rules ----------
76$(OBJ_PATH)/%.o : $(SRC_PATH)/%.c
77        $(CC) $(CFLAGS) -c $< -o $@
78   
79#-----Main rule ----------
80$(EXE_PATH)/$(PRODUCT): $(OBJ)
81        $(CC) -o $@ $^ $(LDFLAGS) $(INC) $(LIB_LIB_PATH) -lnrc2x -lm -liomp5 -lpthread
82
83# -- Other stuff ----------
84depend:
85        makedepend $(CFLAGS) -Y $(SRC)
86
87clean:
88        rm -f $(OBJ)
89        #rm -f ${LIB_PATH}/${PRODUCT}
90
91tar:
92        tar -cvf labeling.tar Makefile src include
93        gzip -9 labeling.tar
Note: See TracBrowser for help on using the repository browser.