-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (43 loc) · 1.61 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
51
52
53
54
55
56
57
58
59
60
## -*- Makefile -*-
##
## User: denis_000
## Time: Sep 4, 2014 2:22:24 PM
## Makefile created by Oracle Solaris Studio.
##
## This file is generated automatically.
##
#### Compiler and tool definitions shared by all build targets #####
CC = gcc
BASICOPTS = -g
CFLAGS = $(BASICOPTS) -I./include -I./libstemmer -I./runtime -I./src_c
# Define the target directories.
TARGETDIR_main.exe=.
all: main.exe
## Target: main.exe
OBJS_main.exe = $(TARGETDIR_main.exe)/main.o
USERLIBS_main.exe = $(SYSLIBS_main.exe)
LDLIBS_main.exe = $(USERLIBS_main.exe)
# Link or archive
$(TARGETDIR_main.exe)/main.exe: $(OBJS_main.exe) libstemmer.o stem_UTF_8_portuguese.o stem_UTF_8_numeric.o utilities.o api.o
$(LINK.c) $(CFLAGS) -o $@ $(OBJS_main.exe) libstemmer.o stem_UTF_8_portuguese.o stem_UTF_8_numeric.o utilities.o api.o $(LDLIBS_main.exe)
# Compile source files into .o files
$(OBJS_main.exe): $(TARGETDIR_main.exe) main.c
$(COMPILE.c) $(CFLAGS) -o $@ main.c
libstemmer.o: libstemmer/libstemmer.c
$(COMPILE.c) $(CFLAGS) -o $@ libstemmer/libstemmer.c
stem_UTF_8_portuguese.o: src_c/stem_UTF_8_portuguese.c
$(COMPILE.c) $(CFLAGS) -o $@ src_c/stem_UTF_8_portuguese.c
stem_UTF_8_numeric.o: src_c/stem_UTF_8_numeric.c
$(COMPILE.c) $(CFLAGS) -o $@ src_c/stem_UTF_8_numeric.c
utilities.o: runtime/utilities.c
$(COMPILE.c) $(CFLAGS) -o $@ runtime/utilities.c
api.o: runtime/api.c
$(COMPILE.c) $(CFLAGS) -o $@ runtime/api.c
#### Clean target deletes all generated files ####
clean:
rm -f \
$(TARGETDIR_main.exe)/main.exe \
$(TARGETDIR_main.exe)/main.o
# Enable dependency checking
.KEEP_STATE:
.KEEP_STATE_FILE:.make.state.GNU-amd64-Windows