added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / .unmaintained / all-openbsd / mmakefile.src
blobc21e2c0072553e5f91cb6acf85e18f4aab591d71
1 # $Id$ 
2 include $(TOP)/config/make.cfg
4 FILES           := exec/init
5 DEPS            := $(foreach f,$(FILES),$(OSGENDIR)/$(f).d)
6 OS_INCLUDES     := -I$(GENINCDIR)
7 CFLAGS2         := $(SHARED_CFLAGS) -I/$(TOP)/rom/exec $(CFLAGS)
9 #MM- AROS-openbsd-i386 : AROS-openbsd
10 #MM- setup-openbsd-i386 : setup-openbsd
12 #MM- AROS-openbsd : setup-openbsd includes compiler kernel workbench \
13 #MM     demos games shell
15 #MM- kernel-openbsd : \
16 #MM     kernel-aros-linklib \
17 #MM     kernel-battclock-openbsd \
18 #MM     kernel-boot-linklib \
19 #MM     kernel-devs \
20 #MM     kernel-dos-openbsd \
21 #MM     kernel-exec-openbsd \
22 #MM     kernel-expansion-linklib \
23 #MM     kernel-filesys \
24 #MM     kernel-filesys-unix \
25 #MM     kernel-hidd-openbsd \
26 #MM     kernel-graphics-openbsd \
27 #MM     kernel-intuition-openbsd \
28 #MM     kernel-keymap-linklib \
29 #MM     kernel-mathffp-linklib \
30 #MM     kernel-mathieeesingbas-linklib \
31 #MM     kernel-timer-linklib \
32 #MM     kernel-utility-openbsd \
33 #MM     kernel-oop-linklib \
34 #MM     kernel-layers-linklib \
35 #MM     kernel-workbench-linklib        \
36 #MM     kernel-cgfx-linklib
38 # Setup the CLIB metatargets...
39 #MM- setup-clib-openbsd : setup-clib-openbsd-$(CPU)
41 #MM
42 kernel :
43         @$(NOP)
45 #MM setup-openbsd : \
46 #MM     setup-exec-openbsd \
47 #MM     setup-dos-unix \
48 #MM     setup-battclock-unix \
49 #MM     setup-$(GFXSYSTEM)
50 setup-openbsd : 
51         %mkdirs_q $(OSGENDIR) $(OSGENDIR)/exec $(OSGENDIR)/boot
52         %add_objects rom/boot/strap_emul
55 #MM setup-exec-openbsd : setup-exec-unix setup-exec-$(CPU)
56 setup-exec-openbsd : $(GENINCDIR)/sigcore.h 
57         %add_objects rom/exec/init
59 $(GENINCDIR)/sigcore.h : $(TOP)/config/openbsd/exec/sigcore.h
60         %mkdirs_q $(GENINCDIR)
61         $(CP) $^ $@
63 #MM- kernel-exec-openbsd : \
64 #MM     exec-openbsd \
65 #MM     exec-$(CPU) \
66 #MM     exec-unix \
67 #MM     kernel-exec-linklib
69 #MM
70 exec-openbsd : $(OSGENDIR)/exec/init.o
72 #MM- setup-dos-openbsd : setup-dos-unix
74 #MM- kernel-dos-openbsd : dos-unix kernel-dos-linklib
76 #MM- setup-battclock-openbsd : setup-battclock-unix
78 #MM- kernel-graphics-openbsd : graphics-$(GFXSYSTEM) hidd-graphics-x11 kernel-graphics-linklib
80 #MM- kernel-intuition-openbsd : intuition-$(GFXSYSTEM) kernel-intuition-linklib
82 #MM- kernel-hidd-openbsd : kernel-hidd-linklib kernel-hidd-unix
84 #MM- kernel-utility-openbsd : kernel-utility-linklib
86 #MM- kernel-battclock-openbsd : battclock-unix kernel-battclock-linklib
88 #MM- check : check-exec-unix
90 #MM- clib-openbsd : clib-openbsd-$(CPU)
92 #MM- includes-openbsd : includes-copy includes-openbsd-$(CPU)
94 #MM- workbench-openbsd : workbench-complete workbench-hidd-unix
96 #MM
97 clean ::
98         -$(RM) $(foreach f,$(FILES),$(OSGENDIR)/$(f).o) */*.err
100 $(OSGENDIR)/%.o : %.c
101         %compile_q opt=$(CFLAGS2)
103 $(OSGENDIR)/%.d : %.c
104         %mkdepend_q flags=$(CFLAGS2)
106 %include_deps
107 %common