blob: fa5be6f3c61436bb05d8327de91dc928a1def126 (
plain)
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
|
CXX=g++
CFLAGS=-Wall
CXXFLAGS=$(CFLAGS)
LDFLAGS=-ldl
OBJ=main.o TChannel.o TConnection.o TPluginParent.o TUserList.o myfuncs.o TConfig.o TPlugin.o TSession.o
BIN=drunkenman
DEPENDFILE = .depend
SRC = $(OBJ:%.o=%.cpp)
all: $(BIN)
$(BIN): $(OBJ)
$(CXX) $(CFLAGS) -o $(BIN) $(OBJ) $(LDFLAGS)
depend dep: $(SRC)
$(CC) -MM $(SRC) > $(DEPENDFILE)
-include $(DEPENDFILE)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $<
.PHONY: clean dep depend
clean:
rm -f $(OBJ) $(BIN)
|