.SUFFIXES:
.SUFFIXES: .asm .s .c .cpp .o .a
VERS = 

CC     = g++$(VERS) -Wall
PLAIN_C= gcc$(VERS) -Wall
LD     = g++$(VERS)
CFLAGS = -O
PPMII_FLAGS = -Wno-sign-compare -Wno-unused

so  = .so
a   = .a
e   = 
o   = .o
s   = .asm
 
AR  = ar cr
ASM = nasm -f elf

XLIB_PATH = -L/usr/X11R6/lib

XLIB    = -lX11

.SUFFIXES: .cpp

VPATH = ".\"

IPATH1 = $(LROOT)/incl

.c$(s):
	$(CC) $(CFLAGS) $(DFLAGS) $(IFLAGS)  -I$(IPATH1) -S $*.c

.cpp$(o):
	$(CC) $(CFLAGS) $(DFLAGS) $(IFLAGS)  -I$(IPATH1) -c $*.cpp

$(o)$(e):
	$(LD) $(LFLAGS) -o $* $*$(o) $(OBJECTS) $(XLIB_PATH) -L$(LROOT) $(UNIXLIB)

.cpp$(e):
	$(CC) $(CFLAGS) $(DFLAGS) $(IFLAGS)  -I$(IPATH1) -c $*.cpp
	$(LD) $(LFLAGS) -o $* $*$(o) $(OBJECTS) $(XLIB_PATH) -L$(LROOT) $(UNIXLIB)


all:  $(OBJECTS) $(PROGS)


clean:
	rm -f *$(o) core

del:
	rm -f *$(o) $(PROGS) core


static_xlman:
	$(LD) -o xlman$(e) xlman$(o) $(LROOT)/libW.a $(LROOT)/libP.a $(LROOT)/libG.a $(LROOT)/libL.a $(XLIB_PATH) $(XLIB)
	strip xlman$(e)

