1 #-------------------------------------------------------------------------
4 # Makefile for the port-specific subsystem of the backend
6 # We have two different modes of operation: 1) put stuff specific to Port X
7 # in subdirectory X and have that subdirectory's make file make it all, and
8 # 2) use conditional statements in the present make file to include what's
9 # necessary for a specific port in our own output. (1) came first, but (2)
10 # is superior for many things, like when the same thing needs to be done for
11 # multiple ports and you don't want to duplicate files in multiple
12 # subdirectories. Much of the stuff done via Method 1 today should probably
13 # be converted to Method 2.
18 #-------------------------------------------------------------------------
20 subdir
= src
/backend
/port
21 top_builddir
= ..
/..
/..
22 include $(top_builddir
)/src
/Makefile.global
24 OBJS
= dynloader.o pg_sema.o pg_shmem.o
$(TAS
)
26 ifeq ($(PORTNAME
), darwin
)
29 ifeq ($(PORTNAME
), win32
)
33 include $(top_srcdir
)/src
/backend
/common.mk
36 ifeq ($(PORTNAME
), solaris
)
37 # preprocess assembler file with cpp, used by x86
38 $(CC
) $(CFLAGS
) -c
-P
$<
40 $(CC
) $(CFLAGS
) -c
$*_cpp.s
-o
$@
46 ipc_test
: ipc_test.o pg_sema.o pg_shmem.o
47 $(CC
) $(CFLAGS
) $(LDFLAGS
) $(export_dynamic
) $^
$(LIBS
) -o
$@
50 rm -f ipc_test ipc_test.o tas_cpp.s
51 $(MAKE
) -C darwin
clean
52 $(MAKE
) -C win32
clean