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: .SUFFIXES:
CC = cc CC = cc
CFLAGS = -Wall -O2 CFLAGS = -Wall -O2
LDFLAGS = -lXm -lXt -lX11 LDLIBS = -lXm -lXt -lX11
PREFIX = /usr/local/ PREFIX = /usr/local/
DESTDIR = DESTDIR =
BIN = nebula BIN = nebula
@ -10,7 +10,7 @@ BIN = nebula
all: ${BIN} all: ${BIN}
nebula: filesave.o help.o interpreter.o main.o network.o preferences.o signals.o userlist.o 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: all
install -Dm0755 ${BIN} ${DESTDIR}/${PREFIX}/bin install -Dm0755 ${BIN} ${DESTDIR}/${PREFIX}/bin
@ -20,4 +20,4 @@ clean:
.SUFFIXES: .c .o .SUFFIXES: .c .o
.c.o: .c.o:
${CC} ${CFLAGS} ${LDFLAGS} -c $< ${CC} ${CFLAGS} ${LDLIBS} -c $<