Modify makefile to accommodate the environment.
This commit is contained in:
parent
4ff29df2d3
commit
959944f0b8
@ -2,7 +2,7 @@
|
||||
.SUFFIXES:
|
||||
CC = cc
|
||||
CFLAGS = -Wall -O2
|
||||
LDFLAGS = -lXm -lXt -lX11
|
||||
LDLIBS = -lXm -lXt -lX11
|
||||
PREFIX = /usr/local/
|
||||
DESTDIR =
|
||||
BIN = nebula
|
||||
@ -10,7 +10,7 @@ BIN = nebula
|
||||
all: ${BIN}
|
||||
|
||||
nebula: filesave.o help.o interpreter.o main.o network.o preferences.o signals.o userlist.o
|
||||
cc -o nebula filesave.o help.o interpreter.o main.o network.o preferences.o signals.o userlist.o ${CFLAGS} ${LDFLAGS}
|
||||
cc -o nebula filesave.o help.o interpreter.o main.o network.o preferences.o signals.o userlist.o ${CFLAGS} ${LDFLAGS} ${LDLIBS}
|
||||
|
||||
install: all
|
||||
install -Dm0755 ${BIN} ${DESTDIR}/${PREFIX}/bin
|
||||
@ -20,4 +20,4 @@ clean:
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
.c.o:
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -c $<
|
||||
${CC} ${CFLAGS} ${LDLIBS} -c $<
|
||||
|
Loading…
Reference in New Issue
Block a user