summaryrefslogtreecommitdiff
path: root/windhoek/Makefile
blob: 91646bba0480ef2ccd35ed6418bb7129d69983b1 (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
PKGDIR        ?= ../libdde_linux26
L4DIR         ?= $(PKGDIR)

SYSTEMS        = x86-l4v2

DEFAULT_RELOC  = 0x00a00000

include Makeconf.local
#-include $(PKGDIR_OBJ)/../dde/Makeconf

TARGET         = windhoek

IDE_SRC = ide.c ide-disk.c ide-generic.c ide-io.c ide-park.c \
		  ide-iops.c ide-lib.c ide-pm.c ide-pnp.c ide-probe.c ide-taskfile.c  \
		  setup-pci.c ide-pci-generic.c ide-pio-blacklist.c ide-sysfs.c \
		  ide-dma.c ide-gd.c
IDEFILES = $(addprefix ide/, $(IDE_SRC))

CDROM_SRC = #cdrom.c
CDROMFILES = $(addprefix cdrom/, $(CDROM_SRC))

PARTITION_SRC = check.c
PARTITIONFILES = $(addprefix partitions/, $(PARTITION_SRC))

SRC_C          = main.c genhd.c
SRC_C          += $(IDEFILES) \
				 $(CDROMFILES) \
				 $(PARTITIONFILES)

LIBS          += --whole-archive --no-whole-archive ../libmachdev/libmachdev.a \
		 -ldde_linux26.o -ldde_linux26_block ../libddekit/libddekit.a \
		 -lfshelp -ltrivfs -lpciaccess -lthreads -lshouldbeinlibc \
		 -lports -lhurd-slab

LDFLAGS       += -Wl,-u,__l4ddekit_initcall_noop_init -Wl,-u,__l4ddekit_initcall_as_init -Wl,-u,__l4ddekit_initcall_deadline_init

# DDE configuration
include $(L4DIR)/Makeconf

include $(L4DIR)/mk/prog.mk