mingw.mak
797 Bytes
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
# Portability makefile -- helper for other makefiles
# MingW32 version
TARGET = MINGW32
ifdef MINGDIR
MINGDIR_U = $(subst \,/,$(MINGDIR))
MINGDIR_D = $(subst /,\,$(MINGDIR))
else
@echo Please specify your mingw32 directory via MINGDIR=.
endif
LIBDEST = $(MINGDIR_U)/lib/$(LIBFILENAME)
INCDEST = $(MINGDIR_U)/include/$(INCNAME)
EXE_SUFFIX = .exe
# Fileutils is required
RM_F = rm -f
CP_F = cp
# DOSish analogue of the "%: %.o" rule
%.exe: %.o
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
CC = gcc
WARNING_FLAGS = -Wall -Werror -Wno-unused -Wstrict-prototypes
LDLIBS = -lwsock32
LINK_ALLEGRO = -lalleg
ARFLAGS = rs
LIBNAME = net
LIBFILENAME = lib$(LIBNAME).a
INCNAME = libnet.h
LIBDIR = $(BASE)/lib
LIBSRC = $(LIBDIR)/$(LIBFILENAME)
INCDIR = $(BASE)/include
INCSRC = $(INCDIR)/$(INCNAME)