# This are the defines for serveral machines
#
# -Dlinux
# -Dhpux
# -Dultrix
# -DCOHERENT
# -DAIXV3

# if you dont have the XPM-Library remove the -DHAVE_XPM define and
# edit the LIBS-line
# You can use any compiler that understands ANSI-C

#CC = gcc -DHAVE_XPM -Os -Dlinux -DXAW -I/usr/include/X11
CC = gcc -DHAVE_XPM -Os -Dlinux -DXAWPLUS -I/usr/include/X11
#CC = gcc -Os -Dlinux -I/usr/include/X11

#next line for minimal size
#LIBS= -lXaw -lXt -lXmu -lX11 -lm
#next line for XawPlus static
#LIBS= -lXpm -lXt -lXmu -lX11 -lm
#next line for XawPlus dynamic
LIBS= -lXpm -lXawPlus -lXt -lXmu -lX11 -lm
#next line for Xaw3d dynamic
#LIBS= -lXpm -lXaw3d -lXt -lXmu -lX11 -lm

LDFLAGS= -L/usr/X11R6/lib

# On sun architectures use uncomment the following two settings and
# comment out the last two

#           SRCS = main.c dir.c file.c graph.c action.c menu.c action_move.c \
#                  action_copy.c action_delete.c action_exec.c action_newdir.c \
#                  multi.c single.c grab.c folder.c iconbar.c customize.c \
#                  workspace.c about.c devices.c
#           OBJS = main.o dir.o file.o graph.o action.o menu.o action_move.o \
#                  action_copy.o action_delete.o action_exec.o action_newdir.o \
#                  multi.o single.o grab.o folder.o iconbar.o customize.o \
#                  workspace.o about.o devices.o


SRCS = main.c dir.c file.c graph.c action.c menu.c action_move.c \
       action_copy.c action_delete.c action_exec.c action_newdir.c \
       multi.c single.c grab.c folder.c iconbar.c customize.c \
       action_link.c popup.c about.c Clock.c transform.c devices.c
OBJS = main.o dir.o file.o graph.o action.o menu.o action_move.o \
       action_copy.o action_delete.o action_exec.o action_newdir.o \
       multi.o single.o grab.o folder.o iconbar.o customize.o \
       action_link.o popup.o about.o Clock.o transform.o devices.o 
#       /usr/X11R6/lib/libXawPlus.a

xfilemanager: $(OBJS)
	$(CC) -o xfilemanager $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
	@ls -al $@;strip $@;ls -al $@

.c.o:  $<
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f core xfilemanager *.o *~
