Category : OS/2 Files
Archive   : EMXTST8F.ZIP
Filename : MAKEFILE

 
Output of file : MAKEFILE contained in archive : EMXTST8F.ZIP
#
# /emx/test/makefile
#
CFLAGS=-g -Wall
CC=gcc $(CFLAGS)
B=/emx/bin/
I=/emx/include/
P=/emx/include.cpp/
L=/emx/lib/
SIGNAL=$(I)signal.h $(I)sys/signal.h
FCNTL=$(I)fcntl.h $(I)sys/fcntl.h
LIBS=$(L)crt0.o $(L)libc.a $(L)libgcc.a
LIBP=$(L)libgpp.a
LIBOS2=$(L)libos2.a
LIBBSD=$(L)libbsd.a

.SUFFIXES: .o .c .cc .s .exe

.c.o:
$(CC) -c $<

.cc.o:
$(CC) -c $<

.c.s:
$(CC) -S $<

.o.exe:
$(CC) -o $*.exe $<

default: samples

all: samples tests plusplus os2only dosonly

samples: calc.exe graph.exe eatool.exe sieve.exe sort.exe \
wm_demo.exe wm_hello.exe

tests: access.exe alarm.exe args.exe bsdtest.exe conv.exe \
coretest.exe coretst2.exe ctypetst.exe debug.exe divtest.exe \
dttest.exe exec.exe explode.exe float.exe ftwtest.exe \
fullpath.exe hexdump.exe hw_io.exe longlong.exe math.exe \
memory.exe memtest.exe nls.exe pack.exe pid.exe printf.exe \
retcode.exe sbrktest.exe scanf.exe sig1.exe sig2.exe sig3.exe \
splitarg.exe stack.exe stdiotst.exe system.exe swaptest.exe \
termio.exe timetest.exe tmpnam.exe trunc.exe uname.exe \
version.exe video.exe wm_test.exe

dosonly: hw_mem.exe vmode.exe

os2only: dlltest1 far16.exe fork.exe idle.exe kbd.exe msgtest \
os2test.exe pm1.exe pipe.exe popen.exe read_kbd.exe \
select.exe showmem.exe testdll1.dll threads.exe thunk.exe \
vio.exe

dlltest1: dlltest1.exe testdll1.dll

plusplus: hello.exe stdio1.exe stdio2.exe test1.exe test2.exe

objc: objcsamp.exe

msgtest: msgtest.exe msgtest.msg

clean:
-del *.o $(DELOPT)
-del *.exe $(DELOPT)
-del *.dll $(DELOPT)
-del *.obj $(DELOPT)
-del coretest $(DELOPT)
-del coretest.cor $(DELOPT)
-del mathtest.out $(DELOPT)
-del pm1 $(DELOPT)
-del pm1.res $(DELOPT)

access.o: access.c $(I)stdio.h $(I)io.h $(I)string.h $(I)stdlib.h
alarm.o: alarm.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(SIGNAL)
args.o: args.c $(I)stdio.h $(I)stdlib.h
bsdtest.o: bsdtest.c $(I)stdio.h $(I)stdlib.h
calc.o: calc.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)math.h \
$(I)ctype.h $(I)setjmp.h
conv.o: conv.c $(I)stdio.h $(I)stdlib.h $(I)string.h
coretest.o: coretest.c $(I)stdio.h $(I)stdlib.h $(I)io.h $(FCNTL) \
$(I)sys/types.h $(I)sys/stat.h
ctypetst.o: ctypetst.c $(I)stdio.h $(I)string.h $(I)ctype.h
debug.o: debug.c $(I)stdio.h $(I)string.h $(I)process.h \
$(I)sys/ptrace.h $(I)sys/reg.h $(I)sys/user.h $(I)stdlib.h
divtest.o: divtest.c $(I)stdio.h $(I)stdlib.h
dttest.o: dttest.c $(I)stdio.h $(I)stdlib.h $(I)getopt.h $(I)time.h \
$(I)sys/dirtree.h $(I)sys/param.h
exec.o: exec.c $(I)stdio.h $(I)string.h $(I)process.h $(SIGNAL)
explode.o: explode.c $(I)stdio.h $(I)stdlib.h
far16.o: far16.c $(I)stdio.h $(I)os2.h $(I)os2thunk.h
float.o: float.c $(I)stdio.h $(I)float.h
fork.o: fork.c $(I)process.h $(I)stdio.h $(I)string.h $(I)stdlib.h \
$(I)getopt.h $(SIGNAL) $(I)time.h
ftwtest.o: ftwtest.c $(I)stdio.h $(I)sys/types.h $(I)sys/stat.h \
$(I)ftw.h
fullpath.o: fullpath.c $(I)stdio.h $(I)stdlib.h $(I)sys/param.h \
$(I)getopt.h
graph.o: graph.c $(I)graph.h $(I)conio.h $(I)stdlib.h $(I)stdio.h \
$(I)getopt.h $(I)signal.h $(I)setjmp.h $(I)limits.h \
$(I)string.h
hello.o: hello.cc $(P)iostream.h
hexdump.o: hexdump.c $(I)stdio.h $(I)stdlib.h $(I)io.h $(FCNTL) \
$(I)sys/ioctl.h
hw_io.o: hw_io.c $(I)stdio.h $(I)stdlib.h $(I)sys/hw.h $(I)string.h
hw_mem.o: hw_mem.c $(I)stdio.h $(I)stdlib.h $(I)sys/hw.h $(I)memory.h \
$(I)io.h
idle.o: idle.c $(I)stdio.h $(I)process.h $(I)string.h $(I)os2emx.h \
$(I)stdlib.h
eatool.o: eatool.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)sys/ead.h \
$(I)getopt.h $(I)sys/nls.h $(I)os2.h
math.o: math.c $(I)stdio.h $(I)stdlib.h $(I)math.h
memory.o: memory.c $(I)stdio.h $(I)string.h
memtest.o: memtest.c $(I)sys/emx.h $(I)stdio.h $(I)stdlib.h \
$(I)string.h $(I)io.h
nls.o: nls.c $(I)sys/nls.h $(I)stdio.h $(I)string.h $(I)stdlib.h
os2test.o: os2test.c $(I)stdio.h $(I)string.h $(I)os2emx.h
pack.o: pack.c $(I)stdio.h
pid.o: pid.c $(I)stdio.h $(I)process.h
pipe.o: pipe.c $(I)stdio.h $(I)io.h $(I)process.h $(I)unistd.h \
$(I)stdlib.h $(FCNTL) $(I)string.h $(SIGNAL)
pm1.o: pm1.c pm1.h $(I)stdio.h $(I)os2emx.h
popen.o: popen.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)getopt.h
printf.o: printf.c $(I)stdio.h
retcode.o: retcode.c $(I)stdlib.h
sbrktest.o: sbrktest.c $(I)stdio.h $(I)stdlib.h $(I)string.h
scanf.o: scanf.c $(I)stdio.h
select.o: select.c $(I)stdio.h $(I)io.h $(I)process.h $(I)unistd.h \
$(I)stdlib.h $(FCNTL) $(I)string.h $(SIGNAL) $(I)sys/ioctl.h \
$(I)sys/types.h $(I)sys/time.h
showmem.o: showmem.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)os2emx.h
sieve.o: sieve.c $(I)stdio.h $(I)stdlib.h $(I)memory.h
sig1.o: sig1.c $(I)stdio.h $(SIGNAL)
sig2.o: sig1.c $(I)stdio.h $(I)stdlib.h $(SIGNAL) $(I)setjmp.h \
$(I)process.h
sig3.o: sig3.c $(I)stdio.h $(I)stdlib.h $(SIGNAL) $(I)setjmp.h
sort.o: sort.c $(I)stdio.h $(I)stdlib.h $(I)string.h
splitarg.o: splitarg.c $(I)stdio.h $(I)stdlib.h $(I)string.h
stack.o: stack.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(SIGNAL) \
$(I)alloca.h
stdio.o: stdio.cc $(I)stdio.h $(P)iostream.h
stdiotst.o: stdiotst.c $(I)stdio.h $(I)stdlib.h
system.o: system.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)process.h
swaptest.o: swaptest.c $(I)stdio.h $(I)stdlib.h $(I)io.h
termio.o: termio.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)io.h \
$(I)errno.h $(SIGNAL) $(I)process.h $(I)setjmp.h \
$(I)sys/types.h $(I)sys/time.h $(I)sys/termio.h $(I)fcntl.h \
$(I)sys/ioctl.h
test1.o: test1.cc $(I)stdio.h $(P)iostream.h
test2.o: test2.cc $(P)iostream.h
dlltest1.o: dlltest1.c
timetest.o: timetest.c $(I)stdio.h $(I)time.h $(I)sys/types.h \
$(I)sys/stat.h $(I)io.h $(I)stdlib.h $(I)ctype.h $(I)string.h \
$(I)getopt.h
tmpnam.o: tmpnam.c $(I)stdio.h
trunc.o: trunc.c $(I)stdio.h $(I)stdlib.h $(I)io.h $(I)getopt.h \
$(I)fcntl.h
uname.o: uname.c $(I)stdio.h $(I)sys/utsname.h
version.o: version.c $(I)stdio.h $(I)stdlib.h $(I)string.h $(I)sys/emx.h
video.o: video.c $(I)stdio.h $(I)stdlib.h $(I)sys/video.h
vmode.o: vmode.c $(I)stdio.h $(I)stdlib.h $(I)dos.h
wm_demo.o: wm_demo.c $(I)stdio.h $(I)stdlib.h $(I)string.h \
$(I)sys/winmgr.h
wm_hello.o: wm_hello.c $(I)stdio.h $(I)stdlib.h $(I)sys/winmgr.h
wm_test.o: wm_test.c $(I)stdio.h $(I)stdlib.h $(I)string.h \
$(I)sys/video.h $(I)sys/winmgr.h $(I)sys/kbdscan.h

longlong.o: longlong.c $(I)stdio.h $(I)stdlib.h
@echo 2 warnings expected
$(CC) -c longlong.c

imp1.o: testdll1.imp
emximp -a testdll1.imp

msgtest.obj: msgtest.c
gcc -c msgtest.c -Zomf

#
# mkmsgf comes with the "IBM Developer's Toolkit for OS/2 2.0"
#
msgtest.msg: msgtest.txt
mkmsgf msgtest.txt msgtest.msg

testdll1.o: testdll1.c
$(CC) -Zdll -c testdll1.c

testdll1.dll: testdll1.o testdll1.def $(LIBS) $(LIBOS2)
$(CC) -Zdll -o testdll1.dll testdll1.o -s

access.exe: access.o $(LIBS)
$(CC) -o access.exe access.o

alarm.exe: alarm.o $(LIBS)
$(CC) -o alarm.exe alarm.o

args.exe: args.o $(LIBS)
$(CC) -o args.exe args.o

bsdtest.exe: bsdtest.o $(LIBS) $(LIBBSD)
$(CC) -o bsdtest.exe bsdtest.o -lbsd

calc.exe: calc.o $(LIBS)
$(CC) -o calc.exe calc.o

conv.exe: conv.o $(LIBS)
$(CC) -o conv.exe conv.o

coretest: coretest.o $(LIBS)
$(CC) -o coretest coretest.o

coretest.exe: coretest
emxbind $(B)emxl coretest

coretest.cor: coretest.exe
coretest

coretst2.exe: coretest coretest.cor
emxbind -ccoretest.cor $(B)emxl coretest coretst2

ctypetst.exe: ctypetst.o $(LIBS)
$(CC) -o ctypetst.exe ctypetst.o

debug.exe: debug.o $(LIBS)
$(CC) -o debug.exe debug.o

divtest.exe: divtest.o $(LIBS)
$(CC) -o divtest.exe divtest.o

dttest.exe: dttest.o $(LIBS)
$(CC) -o dttest.exe dttest.o

exec.exe: exec.o $(LIBS)
$(CC) -o exec.exe exec.o
emxbind -aq exec -p

explode.exe: explode.o $(LIBS)
$(CC) -o explode.exe explode.o

far16.exe: far16.o $(LIBS) $(LIBOS2)
$(CC) -o far16.exe far16.o

float.exe: float.o $(LIBS)
$(CC) -o float.exe float.o

fork.exe: fork.o $(LIBS)
$(CC) -o fork.exe fork.o

ftwtest.exe: ftwtest.o $(LIBS)
$(CC) -o ftwtest.exe ftwtest.o

fullpath.exe: fullpath.o $(LIBS)
$(CC) -o fullpath.exe fullpath.o

graph.exe: graph.o graph.def $(LIBS) $(LIBOS2) $(L)libgraph.a
$(CC) -o graph.exe graph.o graph.def -lgraph
emxbind -aq graph -acim

hello.exe: hello.o $(LIBS) $(LIBP)
$(CC) -o hello.exe hello.o -lgpp

hexdump.exe: hexdump.o $(LIBS)
$(CC) -o hexdump.exe hexdump.o

hw_io.exe: hw_io.o $(LIBS)
$(CC) -o hw_io.exe hw_io.o
emxbind -aq hw_io -ai

hw_mem.exe: hw_mem.o $(LIBS)
$(CC) -o hw_mem.exe hw_mem.o
emxbind -aq hw_mem -am -p

idle.exe: idle.o $(LIBS) $(LIBOS2)
$(CC) -o idle.exe idle.o

kbd.exe: kbd.c $(LIBS) $(LIBOS2)
$(CC) -o kbd.exe kbd.c -Zomf -Zsys -T 0x10000

eatool.exe: eatool.o $(LIBS) $(LIBOS2)
$(CC) -o eatool.exe eatool.o

longlong.exe: longlong.o $(LIBS)
$(CC) -o longlong.exe longlong.o

math.exe: math.o $(LIBS)
$(CC) -o math.exe math.o


memory.exe: memory.o $(LIBS)
$(CC) -o memory.exe memory.o

memtest.exe: memtest.o $(LIBS)
$(CC) -o memtest.exe memtest.o

msgtest.exe: msgtest.obj
$(CC) -o msgtest.exe msgtest.obj -Zomf

nls.exe: nls.o $(LIBS)
$(CC) -o nls.exe nls.o

objcsamp.exe: objcsamp.m $(I)stdio.h $(I)objc/Object.h $(LIBS) $(L)libobjc.a
$(CC) -o objcsamp.exe objcsamp.m -lobjc

os2test.exe: os2test.o $(LIBS) $(LIBOS2)
$(CC) -o os2test.exe os2test.o

pack.exe: pack.o $(LIBS)
$(CC) -o pack.exe pack.o

pid.exe: pid.o $(LIBS)
$(CC) -o pid.exe pid.o

pipe.exe: pipe.o $(LIBS)
$(CC) -o pipe.exe pipe.o

pm1.res: pm1.rc pm1.h
rc -r -i \emx\include pm1.rc

pm1: pm1.o $(LIBS) $(LIBOS2)
$(CC) -o pm1 pm1.o

pm1.exe: pm1 pm1.res
emxbind -bpq -rpm1.res /emx/bin/emxl pm1

popen.exe: popen.o $(LIBS)
$(CC) -o popen.exe popen.o

printf.exe: printf.o $(LIBS)
$(CC) -o printf.exe printf.o

read_kbd.exe: read_kbd.c
$(CC) -O -o read_kbd.exe read_kbd.c -Zomf -Zsys -T 0x10000

retcode.exe: retcode.o $(LIBS)
$(CC) -o retcode.exe retcode.o

sbrktest.exe: sbrktest.o $(LIBS)
$(CC) -o sbrktest.exe sbrktest.o

scanf.exe: scanf.o $(LIBS)
$(CC) -o scanf.exe scanf.o

select.exe: select.o $(LIBS)
$(CC) -o select.exe select.o

showmem.exe: showmem.o $(LIBS) $(LIBOS2)
$(CC) -o showmem.exe showmem.o

sieve.exe: sieve.o $(LIBS)
$(CC) -o sieve.exe sieve.o

sig1.exe: sig1.o $(LIBS)
$(CC) -o sig1.exe sig1.o

sig2.exe: sig2.o $(LIBS)
$(CC) -o sig2.exe sig2.o

sig3.exe: sig3.o $(LIBS)
$(CC) -o sig3.exe sig3.o

sort.exe: sort.o $(LIBS)
$(CC) -o sort.exe sort.o

splitarg.exe: splitarg.o $(LIBS)
$(CC) -o splitarg.exe splitarg.o

stack.exe: stack.o $(LIBS)
$(CC) -o stack.exe stack.o

stdio1.exe: stdio.o $(LIBS) $(LIBP)
$(CC) -o stdio1.exe stdio.o -lgpp

stdio2.exe: stdio.o $(LIBS) $(LIBP)
$(CC) -o stdio2.exe stdio.o -lstdio -lgpp

stdiotst.exe: stdiotst.o $(LIBS)
$(CC) -o stdiotst.exe stdiotst.o

system.exe: system.o $(LIBS)
$(CC) -o system.exe system.o
emxbind -aq system -p

swaptest.exe: swaptest.o $(LIBS)
$(CC) -o swaptest.exe swaptest.o

termio.exe: termio.o $(LIBS)
$(CC) -o termio.exe termio.o

test1.exe: test1.o $(LIBS) $(LIBP)
$(CC) -o test1.exe test1.o -lgpp

test2.exe: test2.o $(LIBS) $(LIBP)
$(CC) -o test2.exe test2.o -lgpp

dlltest1.exe: dlltest1.o imp1.o
$(CC) -o dlltest1.exe dlltest1.o imp1.o

threads.exe: threads.c $(I)stdio.h $(I)stdlib.h $(I)string.h \
$(I)ctype.h $(I)getopt.h $(I)os2emx.h
$(CC) -o threads.exe threads.c -Zomf -Zmt -T 0x10000

thunk.exe: thunk.c $(I)os2thunk.h
$(CC) -o thunk.exe thunk.c

timetest.exe: timetest.o $(LIBS)
$(CC) -o timetest.exe timetest.o

tmpnam.exe: tmpnam.o $(LIBS)
$(CC) -o tmpnam.exe tmpnam.o

trunc.exe: trunc.o $(LIBS)
$(CC) -o trunc.exe trunc.o

uname.exe: uname.o $(LIBS)
$(CC) -o uname.exe uname.o

version.exe: version.o $(LIBS)
$(CC) -o version.exe version.o

video.exe: video.o $(LIBS) $(L)libvideo.a
$(CC) -o video.exe video.o -lvideo
emxbind -aq video -acm

vio.exe: vio.c
$(CC) -O -o vio.exe vio.c -Zomf -Zmt -T 0x10000

vmode.exe: vmode.o $(LIBS)
$(CC) -o vmode.exe vmode.o
emxbind -aq vmode -ac

wm_demo.exe: wm_demo.o $(LIBS) $(L)libvideo.a
$(CC) -o wm_demo.exe wm_demo.o -lvideo
emxbind -aq wm_demo -acm

wm_hello.exe: wm_hello.o $(LIBS) $(L)libvideo.a
$(CC) -o wm_hello.exe wm_hello.o -lvideo
emxbind -aq wm_hello -acm

wm_test.exe: wm_test.o $(LIBS) $(L)libvideo.a
$(CC) -o wm_test.exe wm_test.o -lvideo
emxbind -aq wm_test -acm


  3 Responses to “Category : OS/2 Files
Archive   : EMXTST8F.ZIP
Filename : MAKEFILE

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/