aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/Makefile.user
blob: e800d6c6e03a237de05443606d4aa1fd8daaded4 (plain)
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
## Builds a simple user-space application that tests the basic functionality
## of the ELF linking routines.

## License would go here

########
# Tools

CC = gcc

RM = rm -f

################
# Build options

CFLAGS = -g3 -O0 -Wall -DELF_USERSPACE_TEST

LDFLAGS = 

##################
# Generated files

# Test executable name
TESTPROG = elftest


###############
# Make targets
.PHONY: all test-prog test-module clean

all: test-prog test-module 


# The testing user-space application
test-prog: $(TESTPROG)

$(TESTPROG): elftest.o elf_module.o elf_utils.o
	$(CC) -o $@ $^

	
# The shared module to test on
test-module: hello_def.so hello_ref.so


hello_def.so: hello_def.o
	$(CC) -shared -o $@ $^
	
hello_ref.so: hello_ref.o
	$(CC) -shared -o $@ $^


# Cleanup target
clean:
	-$(RM) *.o
	-$(RM) $(TESTPROG)
	-$(RM) *.so