forked from huskyproject/fidoconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.mgw
executable file
·70 lines (54 loc) · 1.24 KB
/
makefile.mgw
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
# $Id$
#
# Makefile for building fidoconfig with cross-compiler Mingw32
# No support for the Husky build environment.
CC = gcc
AR = ar
AR_R = rs
ifeq ($(TERM),msys)
RM = rm
else
RM = del
endif
# the space after the o is important!
EXENAMEFLAG=-o
CDEFS = -I.. -I../huskylib -I../smapi -Wall -c
COPT = -O3
LFLAGS =
_OBJ = .o
_EXE = .exe
_TPU = .tpu
_LIB = .a
_DLL = .dll
#LINKSMAPI =../smapi/libsmapimgw.a
#LIBPREFIX = lib
LINKSMAPI =-l../smapi/make/smapi$(_DLL)
LIBPREFIX =
FIDOCONFIG = fidoconfigmgw
FCONF2AQUAED = fconf2aquaed
FCONF2GOLDED = fconf2golded
FCONF2MSGED = fconf2msged
FCONF2FIDOGATE = fconf2fidogate
FCONF2SQUISH = fconf2squish
FCONF2TORNADO = fconf2tornado
FCONF2BINKD = fconf2binkd
FECFG2FCONF = fecfg2fconf
LIBFIDOCONFIG = $(LIBPREFIX)$(FIDOCONFIG)
LINKFIDOCONFIG = $(LIBFIDOCONFIG)$(LIB)
DLLPREFIX =
LIBNAME = fidoconf
DLLSUFFIX =
TARGETDLL = $(DLLPREFIX)$(LIBNAME)$(DLLSUFFIX)$(_DLL)
DLLOPT = -shared
CFLAGS = -Wall -O3
NAMEOPT = -o
LIBS += ../huskylib/make/husky$(_DLL) ../smapi/make/smapi$(_DLL)
default: all
include makefile.inc
$(TARGETDLL): $(LOBJS)
$(CC) $(DLLOPT) $(CFLAGS) $(NAMEOPT)$@ $^ $(LIBS)
#all: commonlibs commonprogs
all: dll commonprogs
clean: commonclean
distclean: clean commondistclean
dll: $(TARGETDLL)