-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.emx
67 lines (47 loc) · 1.81 KB
/
Makefile.emx
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
# OS/2 Makefile for RexxRE
# this makefile works with emx gcc
# you are meant to copy Makefile.emx to the name Makefile, and
# then type `make dist' to get an optimised version of the library
# the resulting library does not require the EMX runtime
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.
# The Original Code is RexxRE.
# The Initial Developer of the Original Code is Patrick TJ McPhee.
# Portions created by Patrick McPhee are Copyright © 2003
# Patrick TJ McPhee. All Rights Reserved.
# Contributors:
# $Header: C:/ptjm/rexx/rexxre/RCS/Makefile.emx 1.1 2003/05/01 15:57:58 ptjm Rel $
DEBUG=-g
DOPT=-O2 -fno-stack-check -fomit-frame-pointer -fexpensive-optimizations -mcpu=pentiumpro
CDEFS=
CFLAGS=$(OPT) $(DEBUG) $(CDEFS) -pipe -Iregex -Zsys -Zdll -Zomf
LDFLAGS=-s
CC=gcc
PROJECT=rexxre
OBJS=$(PROJECT).obj regcomp.obj regexec.obj regerror.obj\
regfree.obj rxsupport.obj
$(PROJECT).dll : $(OBJS) $(PROJECT).def
$(CC) $(CFLAGS) $(LDFLAGS) -o$(PROJECT).dll $(OBJS) $(PROJECT).def
regcomp.obj : regex/regcomp.c
$(CC) -c $(CFLAGS) regex/regcomp.c
regexec.obj : regex/regexec.c
$(CC) -c $(CFLAGS) regex/regexec.c
regfree.obj : regex/regfree.c
$(CC) -c $(CFLAGS) regex/regfree.c
regerror.obj : regex/regerror.c
$(CC) -c $(CFLAGS) regex/regerror.c
%.obj : %.c
$(CC) $(CFLAGS) -c $<
dist:
$(MAKE) $(MAKEFLAGS) OPT="$(DOPT)" DEBUG=""
clean:
-rm *.obj
-rm *.lib
-rm *.dll
-rm *.exp