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 32 33 34 35 36 37
|
# Makefile for tleds and xtleds.
# GPL (c) 1997 Jouni.Lohikoski@iki.fi
all: tleds xtleds
# The first one is if you want to include X code
xtleds: tleds.c
# Making xtleds
gcc -O3 -Wall -o xtleds tleds.c -I/usr/X11R6/include/ -L/usr/X11R6/lib/ -lX11
# This second one works only when started in VT. Check the REMOVE_X_CODE
# in the source code.
tleds: tleds.c
# Making tleds
gcc -DNO_X_SUPPORT -O3 -Wall -o tleds tleds.c
help:
# make help - this.
# make tleds - makes tleds.
# make xtleds - makes xtleds.
# make install - installs tleds, xtleds and tleds man page
# if EUID root.
# make all - make tleds, xtleds, and install if root.
install: tleds
# EUID root needed !
# installing ....
install -s -o root -g root -m 754 tleds $(DESTDIR)/usr/bin/tleds
install -s -o root -g root -m 754 xtleds $(DESTDIR)/usr/bin/xtleds
install -m 644 tleds.1 $(DESTDIR)/usr/man/man1/tleds.1
ln -fs /usr/man/man1/tleds.1 $(DESTDIR)/usr/man/man1/xtleds.1
sync
# ....Done.
clean:
rm -f *.o tleds xtleds
|