OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [scripts/] [lxdialog/] [Makefile] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1629 jcastillo
CC = gcc
2
CPP = gcc -E
3
OPTIM = -O2 -Wall -fomit-frame-pointer
4
 
5
CFLAGS = $(OPTIM) -DLOCALE
6
LDFLAGS = -s -L .
7
LDLIBS = -lncurses
8
 
9
ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h))
10
        CFLAGS += -I/usr/include/ncurses -DCURSES_LOC=""
11
else
12
ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h))
13
        CFLAGS += -I/usr/include/ncurses -DCURSES_LOC=""
14
else
15
ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h))
16
        CFLAGS += -DCURSES_LOC=""
17
else
18
        CFLAGS += -DCURSES_LOC=""
19
endif
20
endif
21
endif
22
 
23
 
24
OBJS = checklist.o menubox.o textbox.o yesno.o inputbox.o \
25
       util.o lxdialog.o msgbox.o
26
SRCS = $(OBJS:.o=.c)
27
 
28
 
29
all: ncurses lxdialog
30
 
31
lxdialog: $(OBJS)
32
 
33
ncurses:
34
        @x=`find /lib/ /usr/lib/ /usr/local/lib/ -maxdepth 1 -name 'libncurses.*'` ;\
35
        if [ ! "$$x" ]; then \
36
                echo -e "\007" ;\
37
                echo ">> Unable to find the Ncurses libraries." ;\
38
                echo ">>" ;\
39
                echo ">> You must have Ncurses installed in order" ;\
40
                echo ">> to use 'make menuconfig'" ;\
41
                echo ;\
42
                exit 1 ;\
43
        fi
44
 
45
clean:
46
        rm -f core *.o *~ lxdialog

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.