-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (52 loc) · 2.2 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
61
62
63
64
65
66
67
68
69
70
71
# these values filled in by yorick -batch make.i
Y_MAKEDIR=/Users/sevin/workspace/yorick-2.2-x64/relocate
Y_EXE=/Users/sevin/workspace/yorick-2.2-x64/relocate/bin/yorick
Y_EXE_PKGS=
Y_EXE_HOME=/Users/sevin/workspace/yorick-2.2-x64/relocate
Y_EXE_SITE=/Users/sevin/workspace/yorick-2.2-x64/relocate
# ----------------------------------------------------- optimization flags
# options for make command line, e.g.- make COPT=-g TGT=exe
COPT=$(COPT_DEFAULT)
TGT=$(DEFAULT_TGT)
# ------------------------------------------------ macros for this package
GCC=gcc
PKG_NAME:=yServer
PKG_I:=yServer.i
OBJS:= ConfigFile.o server_tcp.o yServer.o
# change to give the executable a name other than yorick
PKG_EXENAME:=yorick
# PKG_DEPLIBS=-Lsomedir -lsomelib for dependencies of this package
PKG_DEPLIBS:= -L/sw/lib -lstdc++ -framework CoreFoundation -framework Carbon
# set compiler (or rarely loader) flags specific to this package
PKG_CFLAGS:= -I/sw/include
PKG_LDFLAGS:=
# list of additional package names you want in PKG_EXENAME
# (typically Y_EXE_PKGS should be first here)
EXTRA_PKGS:=$(Y_EXE_PKGS)
# list of additional files for clean
PKG_CLEAN:=
# autoload file for this package, if any
PKG_I_START:=
# non-pkg.i include files for this package, if any
PKG_I_EXTRA:=
# -------------------------------- standard targets and rules (in Makepkg)
# set macros Makepkg uses in target and dependency names
# DLL_TARGETS, LIB_TARGETS, EXE_TARGETS
# are any additional targets (defined below) prerequisite to
# the plugin library, archive library, and executable, respectively
PKG_I_DEPS:=$(PKG_I)
Y_DISTMAKE:=distmake
include $(Y_MAKEDIR)/Make.cfg
include $(Y_MAKEDIR)/Makepkg
include $(Y_MAKEDIR)/Make$(TGT)
# override macros Makepkg sets for rules and other macros
# Y_HOME and Y_SITE in Make.cfg may not be correct (e.g.- relocatable)
Y_HOME:=$(Y_EXE_HOME)
Y_SITE:=$(Y_EXE_SITE)
# reduce chance of yorick-1.5 corrupting this Makefile
MAKE_TEMPLATE := protect-against-1.5
# ------------------------------------- targets and rules for this package
%.o: %.cpp
@printf '\033[36m%s\033[31m%s\033[m\n' "Compiling " $@
@$(GCC) $(CFLAGS) $(PKG_CFLAGS) -c -o $@ $<
# -------------------------------------------------------- end of Makefile