42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# Project: timesynk-pdcurses
|
|
# Makefile created by Dev-C++ 5.4.2
|
|
|
|
CPP = g++.exe
|
|
CC = gcc.exe
|
|
WINDRES = windres.exe
|
|
OBJ = ../main.o ../interface/curses.o ../net/sockets.o ../game.o ../player.o
|
|
LINKOBJ = ../main.o ../interface/curses.o ../net/sockets.o ../game.o ../player.o
|
|
LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -static-libstdc++ -static-libgcc ../../PDCurses/pdcurses.lib
|
|
INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"../../PDCurses"
|
|
CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"../../PDCurses"
|
|
BIN = timesynk-pdcurses.exe
|
|
CXXFLAGS = $(CXXINCS)
|
|
CFLAGS = $(INCS)
|
|
RM = rm -f
|
|
|
|
.PHONY: all all-before all-after clean clean-custom
|
|
|
|
all: all-before $(BIN) all-after
|
|
|
|
|
|
clean: clean-custom
|
|
${RM} $(OBJ) $(BIN)
|
|
|
|
$(BIN): $(OBJ)
|
|
$(CC) $(LINKOBJ) -o $(BIN) $(LIBS)
|
|
|
|
../main.o: ../main.c
|
|
$(CC) -c ../main.c -o ../main.o $(CFLAGS)
|
|
|
|
../interface/curses.o: ../interface/curses.c
|
|
$(CC) -c ../interface/curses.c -o ../interface/curses.o $(CFLAGS)
|
|
|
|
../net/sockets.o: ../net/sockets.c
|
|
$(CC) -c ../net/sockets.c -o ../net/sockets.o $(CFLAGS)
|
|
|
|
../game.o: ../game.c
|
|
$(CC) -c ../game.c -o ../game.o $(CFLAGS)
|
|
|
|
../player.o: ../player.c
|
|
$(CC) -c ../player.c -o ../player.o $(CFLAGS)
|