-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile.myserverlinux
More file actions
100 lines (68 loc) · 1.89 KB
/
Copy pathmakefile.myserverlinux
File metadata and controls
100 lines (68 loc) · 1.89 KB
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
93
94
95
96
97
98
99
#############################################################################
# Makefile for building: iVT
# Project: IBM Volume Ray caster
# Template: app
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
CFLAGS = -std=gnu99 -g -O3 -Wall -W $(DEFINES)
CXXFLAGS = -O4 -Wall -W $(DEFINES)
INCPATH = -I.
LINK = gcc
LFLAGS = -headerpad_max_install_names
LIBS = $(SUBLIBS) -lcurses
AR = ar cq
RANLIB = ranlib -s
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = cp -f
COPY_DIR = cp -f -R
STRIP =
INSTALL_FILE = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = $(COPY_FILE)
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MV = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = ./
####### Files
SOURCES = myserver.c connection.c
OBJECTS = myserver.o connection.o
DESTDIR = bin
TARGET = myserver_linux
first: all
####### Implicit rules
.SUFFIXES: .o .c .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
####### Build rules
all: makefile.myserverlinux $(TARGET)
$(TARGET): $(OBJECTS) makefile.myserverfen
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
$(MV) $(TARGET) $(DESTDIR)/$(TARGET)
clean:
-$(DEL_FILE) $(OBJECTS) $(DESTDIR)/$(TARGET)
-$(DEL_FILE) *~ core *.core
check: first
compiler_objective_c_make_all:
compiler_objective_c_clean:
####### Compile
####### Install
install: FORCE
uninstall: FORCE
FORCE: