aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/nif_SUITE_data/Makefile.src
blob: fbb8978771e31822a4e91eae6c3dd292af72fa48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
NIF_LIBS = nif_SUITE.1@dll@ \
           nif_mod.1@dll@ \
           nif_mod.2@dll@ \
           nif_mod.3@dll@

all: $(NIF_LIBS) basic@dll@ rwlock@dll@ tsd@dll@ echo_drv@dll@

@SHLIB_RULES@

$(NIF_LIBS): nif_SUITE.c nif_mod.c nif_mod.h

basic@dll@: tester.c testcase_driver.h

rwlock@dll@: tester.c testcase_driver.h

tsd@dll@: tester.c testcase_driver.h

DRIVER_DIR = ../erl_drv_thread_SUITE_data

basic.c rwlock.c tsd.c: $(DRIVER_DIR)/$@
	cat head.txt > $@
	cat $(DRIVER_DIR)/$@ | sed -e 's/erl_drv_/enif_/g' -e 's/driver_/enif_/g' -e 's/ErlDrv/ErlNif/g' >> $@
	cat tail.txt >> $@