drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / payloads / libpayload / curses / PDCurses / dos / gccdos.mak
blob26a4ed3d0915b6e7bdb6f246983941bc98ef399a
1 # GNU MAKE (3.79.1) Makefile for PDCurses library - DOS DJGPP V2.0+
3 # Usage: make -f [path\]gccdos.mak [DEBUG=Y] [target]
5 # where target can be any of:
6 # [all|libs|demos|dist|pdcurses.a|testcurs.exe...]
8 O = o
10 ifndef PDCURSES_SRCDIR
11 PDCURSES_SRCDIR = ..
12 endif
14 include $(PDCURSES_SRCDIR)/version.mif
15 include $(PDCURSES_SRCDIR)/libobjs.mif
17 osdir = $(PDCURSES_SRCDIR)/dos
19 PDCURSES_DOS_H = $(osdir)/pdcdos.h
21 CC = gcc
23 ifeq ($(DEBUG),Y)
24 CFLAGS = -g -Wall -DPDCDEBUG
25 LDFLAGS = -g
26 else
27 CFLAGS = -O2 -Wall
28 LDFLAGS =
29 endif
31 CFLAGS += -I$(PDCURSES_SRCDIR)
33 LINK = gcc
35 LIBEXE = ar
36 LIBFLAGS = rcv
38 LIBCURSES = pdcurses.a
40 .PHONY: all libs clean demos dist
42 all: libs demos
44 libs: $(LIBCURSES)
46 clean:
47 -del *.o
48 -del *.a
49 -del *.exe
51 demos: $(DEMOS)
52 strip *.exe
54 $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
55 $(LIBEXE) $(LIBFLAGS) $@ $?
56 -copy $(LIBCURSES) panel.a
58 $(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
59 $(PDCOBJS) : $(PDCURSES_DOS_H)
60 $(DEMOS) : $(PDCURSES_CURSES_H) $(LIBCURSES)
61 panel.o : $(PANEL_HEADER)
62 terminfo.o: $(TERM_HEADER)
64 $(LIBOBJS) : %.o: $(srcdir)/%.c
65 $(CC) -c $(CFLAGS) $<
67 $(PDCOBJS) : %.o: $(osdir)/%.c
68 $(CC) -c $(CFLAGS) $<
70 firework.exe newdemo.exe rain.exe testcurs.exe worm.exe xmas.exe \
71 ptest.exe: %.exe: $(demodir)/%.c
72 $(CC) $(CFLAGS) -o$@ $< $(LIBCURSES)
74 tuidemo.exe: tuidemo.o tui.o
75 $(LINK) $(LDFLAGS) -o$@ tuidemo.o tui.o $(LIBCURSES)
77 tui.o: $(demodir)/tui.c $(demodir)/tui.h $(PDCURSES_CURSES_H)
78 $(CC) -c $(CFLAGS) -I$(demodir) -o$@ $<
80 tuidemo.o: $(demodir)/tuidemo.c $(PDCURSES_CURSES_H)
81 $(CC) -c $(CFLAGS) -I$(demodir) -o$@ $<
83 PLATFORM1 = DJGPP 2.03
84 PLATFORM2 = DJGPP 2.03 for DOS
85 ARCNAME = pdc$(VER)djg
87 include $(PDCURSES_SRCDIR)/makedist.mif