aboutsummaryrefslogblamecommitdiffstats
path: root/erts/emulator/test/port_SUITE_data/Makefile.src
blob: ff822ae72091016413b285f6aab6f8ad3b702772 (plain) (tree)
1
2
3
4
5
6




                                        
                                                    



















                                                                
CC = @CC@
LD = @LD@
CFLAGS = @CFLAGS@ -I@erl_include@ @DEFS@
CROSSLDFLAGS = @CROSSLDFLAGS@

PROGS = port_test@exe@ echo_args@exe@ dead_port@exe@
DRIVERS = echo_drv@dll@ exit_drv@dll@ failure_drv@dll@

all: $(PROGS) $(DRIVERS) port_test.@EMULATOR@

port_test@exe@: port_test@obj@
	$(LD) $(CROSSLDFLAGS) -o port_test port_test@obj@ @LIBS@

port_test@obj@: port_test.c
	$(CC) -c -o port_test@obj@ $(CFLAGS) port_test.c

echo_args@exe@: echo_args@obj@
	$(LD) $(CROSSLDFLAGS) -o echo_args echo_args@obj@ @LIBS@

echo_args@obj@: echo_args.c
	$(CC) -c -o echo_args@obj@ $(CFLAGS) echo_args.c

port_test.@EMULATOR@:		port_test.erl
	@erl_name@ -compile port_test

@SHLIB_RULES@