Modify makefile to accommodate the environment.

This commit is contained in:
Mid Favila 2022-08-21 17:35:43 -04:00
parent 4ff29df2d3
commit 959944f0b8

View File

@ -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 $<