aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/modules/Makefile
blob: 6cd0767f7d95d191f466589ed439d12f95cf37fb (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
## -----------------------------------------------------------------------
##
##   Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
##
##   This program is free software; you can redistribute it and/or modify
##   it under the terms of the GNU General Public License as published by
##   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
##   Boston MA 02111-1307, USA; either version 2 of the License, or
##   (at your option) any later version; incorporated herein by reference.
##
## -----------------------------------------------------------------------

topdir = ../../..
include MCONFIG

CFLAGS += -I$(topdir)/core/elflink

MODULES	  = hello.c32 sort.c32 mytest.c32 menumain.c32 printmsg.c32 background.c32 passwd.c32 sha1hash.c32 \
	unbase64.c32 sha512crypt.c32 md5.c32 crypt-md5.c32 sha256crypt.c32 get_key.c32 ansiraw.c32 test.c32 \
	meminfo.c32 menu.c32 drain.c32 dir.c32 pcitest.c32 vesainfo.c32 cpuid.c32 cpuidtest.c32

TESTFILES =

all: $(MODULES) $(TESTFILES)
	
test.c32 : test.o
	$(LD) $(LDFLAGS) -o $@ $^

menu.c32 : menu.o 
	$(LD) $(LDFLAGS) -o $@ $^

hello.c32 : hello.o
	$(LD) $(LDFLAGS) -o $@ $^
	
sort.c32 : sort.o
	$(LD) $(LDFLAGS) -o $@ $^

mytest.c32 : mytest.o
	$(LD) $(LDFLAGS) -o $@ $^

menumain.c32 : menumain.o
	$(LD) $(LDFLAGS) -o $@ $^

printmsg.c32 : printmsg.o
	$(LD) $(LDFLAGS) -o $@ $^

background.c32 : background.o
	$(LD) $(LDFLAGS) -o $@ $^

drain.c32 : drain.o
	$(LD) $(LDFLAGS) -o $@ $^

passwd.c32 : passwd.o
	$(LD) $(LDFLAGS) -o $@ $^

sha1hash.c32 : sha1hash.o
	$(LD) $(LDFLAGS) -o $@ $^

unbase64.c32 : unbase64.o
	$(LD) $(LDFLAGS) -o $@ $^

sha512crypt.c32 : sha512crypt.o
	$(LD) $(LDFLAGS) -o $@ $^

sha256crypt.c32 : sha256crypt.o
	$(LD) $(LDFLAGS) -o $@ $^

md5.c32 : md5.o
	$(LD) $(LDFLAGS) -o $@ $^

crypt-md5.c32 : crypt-md5.o
	$(LD) $(LDFLAGS) -o $@ $^

get_key.c32 : get_key.o
	$(LD) $(LDFLAGS) -o $@ $^

ansiraw.c32 : ansiraw.o
	$(LD) $(LDFLAGS) -o $@ $^

meminfo.c32 : meminfo.o
	$(LD) $(LDFLAGS) -o $@ $^

pcitest.c32 : pcitest.o
	$(LD) $(LDFLAGS) -o $@ $^

dir.c32 : dir.o
	$(LD) $(LDFLAGS) -o $@ $^

vesainfo.c32 : vesainfo.o
	$(LD) $(LDFLAGS) -o $@ $^

cpuid.c32 : cpuid.o
	$(LD) $(LDFLAGS) -o $@ $^

cpuidtest.c32 : cpuidtest.o
	$(LD) $(LDFLAGS) -o $@ $^

tidy dist:
	rm -f *.o *.lo *.a *.lst .*.d 

clean: tidy
	rm -f *.lss *.lnx *.com *.c32

spotless: clean
	rm -f *~ \#*

install: all
	mkdir -m 755 -p $(INSTALLROOT)$(AUXDIR)
	install -m 644 $(MODULES) $(INSTALLROOT)$(AUXDIR)

-include .*.d