2016-12-27 19:22:04 +00:00
|
|
|
INC = -I/usr/X11R6/include
|
|
|
|
LIBS = -lXext -lX11 -lm -L/usr/X11R6/lib \
|
|
|
|
-ltiff -lXpm -lpng -lz -ljpeg -lungif -lwraster
|
|
|
|
OBJS = src/wmglobe.o src/rend.o src/wmgutil.o \
|
2018-01-08 13:28:15 +00:00
|
|
|
src/sunpos.o src/myconvert.o src/mycontext.o
|
2016-12-27 19:22:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
.c.o :
|
|
|
|
gcc -c -O2 -Wall $(INC) $< -o $*.o
|
|
|
|
|
|
|
|
all: wmglobe
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f src/*.o wmglobe
|
2018-01-08 13:28:15 +00:00
|
|
|
|
2016-12-27 19:22:04 +00:00
|
|
|
wmglobe : $(OBJS)
|
|
|
|
gcc -O2 -Wall $(OBJS) -o wmglobe $(LIBS)
|
2018-01-08 13:28:15 +00:00
|
|
|
strip wmglobe
|
2016-12-27 19:22:04 +00:00
|
|
|
|
2018-01-08 13:28:15 +00:00
|
|
|
install :
|
2016-12-27 19:22:04 +00:00
|
|
|
install wmglobe /usr/local/bin
|
|
|
|
install wmglobe.1 /usr/local/man/man1
|