File: makefile.emo

package info (click to toggle)
smapi 2.4.0%2Brc2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 1,016 kB
  • ctags: 1,831
  • sloc: ansic: 11,304; pascal: 394; makefile: 137; asm: 125
file content (39 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
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
# $Id: makefile.emo,v 1.25 2003/01/11 12:55:10 stas_degteff Exp $
# Makefile for EMX on OS/2 with OMF-Style linkage
# No support for the Husky build environment

CC=	gcc
CFLAGS=	-Wall -Zomf -Zsys
CDEFS=	-D__OS2__
COPT=	-O3 -fomit-frame-pointer -fstrength-reduce -Wall -funsigned-char -s
LIB=	emxomfar
OBJ=	.obj

.SUFFIXES:
.SUFFIXES: .c .obj

TARGET=	smapiemo.lib

include makefile.inc

# Thunderbirds are go!

.c.obj:
	$(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<

$(TARGET): $(OBJS)
	$(LIB) r $@ $?

clean:
	-cmd /c DEL *.obj

distclean: clean
	-cmd /c DEL $(TARGET)

smapi.dll: $(OBJS)
	echo LIBRARY smapi > smapi.def
	echo EXPORTS >> smapi.def
	emxexp $(OBJS) >> smapi.def
	$(CC) -Zdll -Zcrtdll -Zomf -Zlinker /PM:VIO -o smapi.dll smapi.def $(OBJS)
	emximp -o $(TARGET) smapi.def
#	emximp -o smapiemx.a smapi.def