-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
39 lines (26 loc) · 824 Bytes
/
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
CXX?= g++
CFLAGS= -O2 -Wall -Wno-strict-aliasing
BINDIR= ./bin/
SRCDIR= ./src/
OBJDIR= ./build/
# Uncomment to send raw packet output to stdout and enable debugging
#CFLAGS+= -D_DEBUG -O0 -g
# Define a custom port to point the client to here (as an integer)
#CFLAGS+= -DMIDDLEMAN_PORT=5998
# Define custom login server hostname and port here (both as strings)
#CFLAGS+= -DREMOTE_HOST=\"login.eqemulator.net\"
#CFLAGS+= -DREMOTE_PORT=\"5998\"
_OBJS= main.o connection.o packet_queue.o
_DEPS= connection.hpp packet_queue.hpp
OBJS= $(patsubst %,$(OBJDIR)%,$(_OBJS))
DEPS= $(patsubst %,$(SRCDIR)%,$(_DEPS))
BIN= $(BINDIR)eqemu-login-helper
default all: $(BIN)
$(BIN): $(OBJS)
$(CXX) -o $@ $^
$(OBJDIR)%.o: $(SRCDIR)%.cpp $(DEPS)
$(CXX) -c -o $@ $< $(CFLAGS)
.PHONY: clean
clean:
rm -f $(OBJDIR)*.o
rm -f $(BIN)