blob: 2e03d81398f044e616342ba4e43dcd234c5bbcbb (
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
|
--- src/Makefile
+++ src/Makefile
@@ -6,7 +6,5 @@
# Architecture determination string borrowed from the kernel makefile.
#
-ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
- -e s/arm.*/arm/ -e s/sa110/arm/)
-PLATFORM = -DPLATFORM=\"$(shell uname -s)/$(ARCH)\"
+PLATFORM = -DPLATFORM=\"$(CHOST)\"
VERNUMBER := $(shell cat version)
VERSION = -DVERSION=\"$(VERNUMBER)\"
@@ -38,5 +37,5 @@
# if the ncurses include files are not in the default location.
-INCLUDEDIR = -I/usr/include/ncurses -I../support
+INCLUDEDIR = -I../support
# You can uncomment this one to disable the backspace key in input fields.
--- support/Makefile
+++ support/Makefile
@@ -1,3 +1,2 @@
-INCLUDEDIR = -I/usr/include/ncurses
OBJS = input.o menurt.o listbox.o winops.o labels.o \
@@ -13,5 +12,5 @@
%.o: %.c *.h
- gcc -O2 -g -Wall -fPIC $(INCLUDEDIR) -c -o $*.o $<
+ $(CC) $(CFLAGS) -Wall -fPIC $(INCLUDEDIR) -c -o $*.o $<
clean:
|