# TrueReality - Display/remote/X/Makefile
# Copyright (C) 1998 Niki W. Waibel
#
# This program is free software; you can redistribute it and/
# or modify it under the terms of the GNU General Public Li-
# cence as published by the Free Software Foundation; either
# version 2 of the Licence, or any later version.
#
# This program is distributed in the hope that it will be use-
# ful, but WITHOUT ANY WARRANTY; without even the implied war-
# ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public Licence for more details.
#
# You should have received a copy of the GNU General Public
# Licence along with this program; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
# USA.
#
# Information about me (the author):
#   Niki W. Waibel, Reichenau 20, 6890 Lustenau, Austria - EUROPE
#   niki.waibel@gmx.net





include ../../../Makefile.tmpl



CLIBS  = -L/usr/X11R6/lib -lX11 -lXext



ifneq (,$(findstring -DUNIX ,$(DEFINES)))
ifneq (,$(findstring -DSHM ,$(DEFINES)))

all: n64displayd

endif
endif



n64displayd.o: n64displayd.c n64displayd.h ../../../config.h ../../../Makefile.tmpl
	$(CC) $(CFLAGS) $(COPT) $(DEFINES) -o n64displayd.o -c n64displayd.c

n64displayd: n64displayd.o ../../../IPC/UNIX/comm.o
	$(CC) $(CFLAGS) $(COPT) $(DEFINES) -o n64displayd n64displayd.o ../../../IPC/UNIX/comm.o $(CLIBS)



comm:
	(cd ../../../IPC; make)





clean:
	$(RM) *.o
	$(RM) n64displayd
