-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.mak
94 lines (66 loc) · 2.14 KB
/
local.mak
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# -*- makefile -*-
# This makefile template was createdy at Wed Jul 28 10:24:56 2004
# command line: ./build_init --package ldap_slp --version 0,1,1 --rootdir /home/mdday/src/ldap_slp --subdir src --subdir src/kernel --subdir src/cmd_util --subdir src/cmd-util/slp_client --subdir src/cmd_util/slp_query --subdir src/cmd_util/slp_srvreg --subdir src/cmd_util/slp_attrreq
# This file is included into the build by the actual Makefile.
# This is the local makefile template. It is read into the actual Makefile.
# You need to define your targets in this file. Note that you must define
# values for the variables that you want built by this make file.
# If there are subdirectories under this one, and you want those subdirectories
# to be included in one of the recursive make targets, you must define it here.
#
SUBDIRS = src
ifeq ($(HOST_OS), aix)
# define the aix targets here
PROGRAMS =
OBJS =
LIBS =
SLIBS =
TESTS =
DOCS =
endif
ifeq ($(HOST_OS), linux)
# define the linux targets here
PROGRAMS =
OBJS =
LIBS =
SLIBS =
TESTS =
DOCS =
endif
ifeq ($(HOST_OS), windows)
# define the windows targets here
PROGRAMS =
OBJS =
LIBS =
SLIBS =
TESTS =
DOCS =
endif
# these are the targets that can be made by the actual Makefile
all: $(PROGRAMS) $(LIBS) $(SLIBS) $(TESTS) $(DOCS) test Makefile
lib: $(LIBS) $(SLIBS)
bin: $(PROGRAMS)
ifeq ($(HOST_OS), aix)
# implicit pattern-based rules, not sufficient for most projects
% : %.o
$(CC) $(LDFLAGS) $(CPPFLAGS) $< -o $@ -bI:$(libdir)/as400_libc.exp
%.o : %.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ -I$(top_builddir)$(OS_PORT_DIR)
# put your actual Makefile rules for aix in here
endif
ifeq ($(HOST_OS), linux)
# implicit pattern-based rules, not sufficient for most projects
% : %.o
$(CC) $(LDFLAGS) $(CPPFLAGS) $< -o $@
%.o : %.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
# put your actual Makefile rules for linux in here
endif
ifeq ($(HOST_OS), windows)
# implicit pattern-based rules, not sufficient for most projects
%.exe : %.obj
cl $(LDFLAGS) $< /Fe$@ $(LINKER_OPTIONS)
%.obj : %.c
cl $(CPPFLAGS) $(CFLAGS) $< /Fo$@
# put your actual Makefile rules for windows in here
endif