drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / payloads / libpayload / curses / PDCurses / win32 / dmcwin32.mak
blob23522cc94f01114a95486669d335691e114b9bcd
1 # Makefile for PDCurses library - WIN32 Digital Mars
3 # Usage: make -f dmcwin32.mak [target]
5 # where target can be any of:
6 # [all|demos|pdcurses.lib|testcurs.exe...]
8 PDCURSES_SRCDIR = ..
10 PDCURSES_CURSES_H = $(PDCURSES_SRCDIR)\curses.h
11 PDCURSES_CURSPRIV_H = $(PDCURSES_SRCDIR)\curspriv.h
12 PDCURSES_HEADERS = $(PDCURSES_CURSES_H) $(PDCURSES_CURSPRIV_H)
14 PANEL_HEADER = $(PDCURSES_SRCDIR)\panel.h
15 TERM_HEADER = $(PDCURSES_SRCDIR)\term.h
17 srcdir = $(PDCURSES_SRCDIR)\pdcurses
18 osdir = $(PDCURSES_SRCDIR)\win32
19 demodir = $(PDCURSES_SRCDIR)\demos
21 PDCURSES_WIN_H = $(osdir)\pdcwin.h
23 CC = dmc
25 CFLAGS = -c -o+space -Nc
27 CPPFLAGS = -I$(PDCURSES_SRCDIR) #-DPDC_WIDE -DPDC_FORCE_UTF8
29 LINK = dmc
30 LIBEXE = lib
32 LIBCURSES = pdcurses.lib
34 BUILD = $(CC) $(CFLAGS) $(CPPFLAGS)
36 DEMOS = testcurs.exe newdemo.exe xmas.exe tuidemo.exe \
37 firework.exe ptest.exe rain.exe worm.exe
39 all: $(LIBCURSES) $(DEMOS)
41 clean:
42 -del *.obj
43 -del *.lib
44 -del *.exe
45 -del *.map
46 -del advapi32.def
48 LIBOBJS = addch.obj addchstr.obj addstr.obj attr.obj beep.obj bkgd.obj \
49 border.obj clear.obj color.obj delch.obj deleteln.obj deprec.obj getch.obj \
50 getstr.obj getyx.obj inch.obj inchstr.obj initscr.obj inopts.obj \
51 insch.obj insstr.obj instr.obj kernel.obj keyname.obj mouse.obj move.obj \
52 outopts.obj overlay.obj pad.obj panel.obj printw.obj refresh.obj \
53 scanw.obj scr_dump.obj scroll.obj slk.obj termattr.obj terminfo.obj \
54 touch.obj util.obj window.obj debug.obj
56 PDCOBJS = pdcclip.obj pdcdisp.obj pdcgetsc.obj pdckbd.obj pdcscrn.obj \
57 pdcsetsc.obj pdcutil.obj
59 DEMOOBJS = testcurs.obj newdemo.obj xmas.obj tuidemo.obj tui.obj \
60 firework.obj ptest.obj rain.obj worm.obj
62 $(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
63 $(PDCOBJS) : $(PDCURSES_WIN_H)
64 panel.obj ptest.obj: $(PANEL_HEADER)
65 terminfo.obj: $(TERM_HEADER)
67 $(DEMOOBJS) : $(PDCURSES_CURSES_H)
68 $(DEMOS) : $(LIBCURSES)
70 $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
71 $(LIBEXE) -c $@ $(LIBOBJS) $(PDCOBJS)
72 -copy $(LIBCURSES) panel.lib
74 SRCBUILD = $(BUILD) $(srcdir)\$*.c
75 OSBUILD = $(BUILD) $(osdir)\$*.c
76 DEMOBUILD = $(LINK) $(CPPFLAGS) -o+space $@ $**
78 addch.obj: $(srcdir)\addch.c
79 $(SRCBUILD)
81 addchstr.obj: $(srcdir)\addchstr.c
82 $(SRCBUILD)
84 addstr.obj: $(srcdir)\addstr.c
85 $(SRCBUILD)
87 attr.obj: $(srcdir)\attr.c
88 $(SRCBUILD)
90 beep.obj: $(srcdir)\beep.c
91 $(SRCBUILD)
93 bkgd.obj: $(srcdir)\bkgd.c
94 $(SRCBUILD)
96 border.obj: $(srcdir)\border.c
97 $(SRCBUILD)
99 clear.obj: $(srcdir)\clear.c
100 $(SRCBUILD)
102 color.obj: $(srcdir)\color.c
103 $(SRCBUILD)
105 delch.obj: $(srcdir)\delch.c
106 $(SRCBUILD)
108 deleteln.obj: $(srcdir)\deleteln.c
109 $(SRCBUILD)
111 deprec.obj: $(srcdir)\deprec.c
112 $(SRCBUILD)
114 getch.obj: $(srcdir)\getch.c
115 $(SRCBUILD)
117 getstr.obj: $(srcdir)\getstr.c
118 $(SRCBUILD)
120 getyx.obj: $(srcdir)\getyx.c
121 $(SRCBUILD)
123 inch.obj: $(srcdir)\inch.c
124 $(SRCBUILD)
126 inchstr.obj: $(srcdir)\inchstr.c
127 $(SRCBUILD)
129 initscr.obj: $(srcdir)\initscr.c
130 $(SRCBUILD)
132 inopts.obj: $(srcdir)\inopts.c
133 $(SRCBUILD)
135 insch.obj: $(srcdir)\insch.c
136 $(SRCBUILD)
138 insstr.obj: $(srcdir)\insstr.c
139 $(SRCBUILD)
141 instr.obj: $(srcdir)\instr.c
142 $(SRCBUILD)
144 kernel.obj: $(srcdir)\kernel.c
145 $(SRCBUILD)
147 keyname.obj: $(srcdir)\keyname.c
148 $(SRCBUILD)
150 mouse.obj: $(srcdir)\mouse.c
151 $(SRCBUILD)
153 move.obj: $(srcdir)\move.c
154 $(SRCBUILD)
156 outopts.obj: $(srcdir)\outopts.c
157 $(SRCBUILD)
159 overlay.obj: $(srcdir)\overlay.c
160 $(SRCBUILD)
162 pad.obj: $(srcdir)\pad.c
163 $(SRCBUILD)
165 panel.obj: $(srcdir)\panel.c
166 $(SRCBUILD)
168 printw.obj: $(srcdir)\printw.c
169 $(SRCBUILD)
171 refresh.obj: $(srcdir)\refresh.c
172 $(SRCBUILD)
174 scanw.obj: $(srcdir)\scanw.c
175 $(SRCBUILD)
177 scr_dump.obj: $(srcdir)\scr_dump.c
178 $(SRCBUILD)
180 scroll.obj: $(srcdir)\scroll.c
181 $(SRCBUILD)
183 slk.obj: $(srcdir)\slk.c
184 $(SRCBUILD)
186 termattr.obj: $(srcdir)\termattr.c
187 $(SRCBUILD)
189 terminfo.obj: $(srcdir)\terminfo.c
190 $(SRCBUILD)
192 touch.obj: $(srcdir)\touch.c
193 $(SRCBUILD)
195 util.obj: $(srcdir)\util.c
196 $(SRCBUILD)
198 window.obj: $(srcdir)\window.c
199 $(SRCBUILD)
201 debug.obj: $(srcdir)\debug.c
202 $(SRCBUILD)
204 pdcclip.obj: $(osdir)\pdcclip.c
205 $(OSBUILD)
207 pdcdisp.obj: $(osdir)\pdcdisp.c
208 $(OSBUILD)
210 pdcgetsc.obj: $(osdir)\pdcgetsc.c
211 $(OSBUILD)
213 pdckbd.obj: $(osdir)\pdckbd.c
214 $(OSBUILD)
216 pdcscrn.obj: $(osdir)\pdcscrn.c
217 $(OSBUILD)
219 pdcsetsc.obj: $(osdir)\pdcsetsc.c
220 $(OSBUILD)
222 pdcutil.obj: $(osdir)\pdcutil.c
223 $(OSBUILD)
225 firework.exe: $(demodir)\firework.c
226 $(DEMOBUILD)
228 newdemo.exe: $(demodir)\newdemo.c
229 $(DEMOBUILD)
231 ptest.exe: $(demodir)\ptest.c
232 $(DEMOBUILD)
234 rain.exe: $(demodir)\rain.c
235 $(DEMOBUILD)
237 testcurs.exe: $(demodir)\testcurs.c
238 $(DEMOBUILD) advapi32.lib
240 tuidemo.exe: tuidemo.obj tui.obj
241 $(DEMOBUILD)
243 worm.exe: $(demodir)\worm.c
244 $(DEMOBUILD)
246 xmas.exe: $(demodir)\xmas.c
247 $(DEMOBUILD)
249 tui.obj: $(demodir)\tui.c $(demodir)\tui.h
250 $(BUILD) -I$(demodir) $(demodir)\$*.c
252 tuidemo.obj: $(demodir)\tuidemo.c
253 $(BUILD) -I$(demodir) $(demodir)\$*.c