-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.mak
50 lines (33 loc) · 1.53 KB
/
rules.mak
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
.PHONY: all everything
all: 1x64sg-VANDA rpctest
1x64sg-VANDA: board/Matrox/1x64sg-mod.o monitor/Standard/VANDA-mod.o system/$(SYSTEM)/kgim-0.9-mod.o core/core-mod.o
$(CC) $(CFLAGS) $(LDFLAGS) -lpci -ltrivfs -o $@ $^
CLEANFILES+=1x64sg-VANDA
clean:
rm -f ${OBJS} ${MODS} ${CLEANFILES}
distclean: clean
rm -f Makefile
%.o: %-bind.o %-meta.o
$(LD) -r $(LDFLAGS) -o $@ $^
%.o: %-fixed.o clock/fixed-meta.o
$(LD) -r $(LDFLAGS) -o $@ $^
%-monitor.o:
$(LD) -r $(LDFLAGS) -o $@ $^
clock/%-fixed.o: clock/%.spec clock/fixed-bind.c
$(CC) $(CFLAGS) -c -o $@ -DFIXED_CLOCK_SPEC=\"$<\" clock/fixed-bind.c
board/%-board.o: board/%.spec system/${SYSTEM}/board-bind.c
$(CC) $(CFLAGS) -c -o $@ -DBOARD_SPEC=\"$<\" system/${SYSTEM}/board-bind.c
monitor/%-monosync.o: monitor/%.spec system/${SYSTEM}/monitor-monosync.c
$(CC) $(CFLAGS) -c -o $@ -DMONITOR_SPEC=\"$<\" system/${SYSTEM}/monitor-monosync.c
monitor/%-crt.o: monitor/%.spec system/${SYSTEM}/monitor-crt.c
$(CC) $(CFLAGS) -c -o $@ -DMONITOR_SPEC=\"$<\" system/${SYSTEM}/monitor-crt.c
system/$(SYSTEM)/%.o: system/$(SYSTEM)/%.c
$(CC) $(CFLAGS) -c -o $@ $<
monitor/crt/VESA-timings.c: monitor/crt/VESA.t
$(AWK) -v timingset=VESA -f monitor/crt/vesa2c.awk $^ > $@
monitor/crt/VGA-timings.c: monitor/crt/VGA.t
$(AWK) -v timingset=VGA -f monitor/crt/vga2c.awk $^ > $@
monitor/monosync/SVGA-timings.c: monitor/monosync/SVGA.t
$(AWK) -v timingset=SVGA -f monitor/monosync/t2c.awk $^ > $@
monitor/monosync/VGA-timings.c: monitor/monosync/VGA.t
$(AWK) -v timingset=VGA -f monitor/monosync/t2c.awk $^ > $@