about summary refs log tree commit diff
path: root/other/pamx/Makefile
blob: 9ad8860d658ded4ef9bbdb241e21f0a94945a691 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
ifeq ($(SRCDIR)x,x)
  SRCDIR = $(CURDIR)/../..
  BUILDDIR = $(SRCDIR)
endif
SUBDIR = other/pamx
VPATH=.:$(SRCDIR)/$(SUBDIR)

include $(BUILDDIR)/Makefile.config

EXTERN_INCLUDE =
ifneq ($(X11LIB),NONE)
  ifneq ($(X11HDR_DIR),)
    EXTERN_INCLUDES += -I$(X11HDR_DIR)
  endif
endif

ifneq ($(X11LIB),NONE)
  BINARIES += pamx

  PAMX_OBJECTS = \
	  pamx.o \
	  image.o \
	  send.o \
	  window.o \

  MERGE_OBJECTS = \
	  pamx.o2 \
	  image.o \
	  send.o \
	  window.o \

endif

OBJECTS = $(PAMX_OBJECTS)

MERGEBINARIES = $(BINARIES)

all: $(BINARIES)

include $(SRCDIR)/Makefile.common

pamx: $(PAMX_OBJECTS) $(NETPBMLIB) $(LIBOPT)
	$(LD) $(LDFLAGS) -o $@ $(PAMX_OBJECTS) \
	  $(shell $(LIBOPT) $(NETPBMLIB) $(X11LIB)) \
	  $(LDLIBS) $(MATHLIB) $(RPATH) $(LADD)