root/foundation-apps/xcomp-mgr-maxx/Makefile

Revision 10, 1.1 KB (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
1#
2# Copyright (c) MaXX Interactive & Eric Masson, 2000-2008
3
4
5TAR                     = tar -cf
6COMPRESS                = gzip -9f
7COPY                    = cp -f
8SED                     = sed
9COPY_FILE               = $(COPY)
10COPY_DIR                = $(COPY) -r
11INSTALL_FILE            = install -m 644 -p
12INSTALL_DIR             = $(COPY_DIR)
13INSTALL_PROGRAM         = install -m 755 -p
14DEL_FILE                = rm -f
15SYMLINK                 = ln -sf
16DEL_DIR                 = rmdir
17MOVE                    = mv -f
18CHK_DIR_EXISTS          = test -d
19MKDIR                   = mkdir -p
20
21
22CC              = gcc
23CXX             = g++
24DEFINES         =
25CFLAGS          = -pipe -O3 -W $(DEFINES)
26LINK            = gcc
27LFLAGS          =
28
29
30TARGET  = XcompMgr
31
32
33MAXX_INCLUDE    = -I/opt/MaXX/include
34MOTIF_INCLUDE   = -I/opt/MaXX/OpenMotif-2.1.32/include
35INCLUDE         = -I/usr/include -I. $(MAXX_INCLUDE) $(MOTIF_INCLUDE)
36
37MAXX_LIBS       = -L/opt/MaXX/lib
38MOTIF_LIB       = -L/opt/MaXX/OpenMotif-2.1.32/lib64
39LIBS            = $(MOTIF_LIB) -lXm $(MAXX_LIBS) -lXt -L/usr/lib64 -lXmu -lXext -lX11  -lm -lXcomposite -lXfixes -lXrender -lXdamage -ldl 
40
41
42
43SOURCES         = xcompmgr.c
44                 
45OBJECTS         = $(SOURCES:.c=.o)     
46
47
48all:     $(OBJECTS)
49        $(LINK) -o $(TARGET) $(LIBS) $(OBJECTS)
50
51.c.o:
52        $(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $<
53
54clean:
55        -$(DEL_FILE) $(OBJECTS)
56        -$(DEL_FILE) *~ core *.core
57        -$(DEL_FILE) $(TARGET)
58       
59distclean: clean
60        -$(DEL_FILE) Makefile.*
61       
Note: See TracBrowser for help on using the browser.