| 1 |
#------------------------------------------------------------------------- |
| 2 |
# |
| 3 |
# Makefile-- |
| 4 |
# Makefile for the port-specific subsystem of the backend |
| 5 |
# |
| 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. |
| 14 |
# |
| 15 |
# IDENTIFICATION |
| 16 |
# src/backend/port/Makefile |
| 17 |
# |
| 18 |
#------------------------------------------------------------------------- |
| 19 |
|
| 20 |
subdir = src/backend/port |
| 21 |
top_builddir = ../../.. |
| 22 |
include $(top_builddir)/src/Makefile.global |
| 23 |
|
| 24 |
OBJS = \ |
| 25 |
$(TAS) \ |
| 26 |
atomics.o \ |
| 27 |
pg_sema.o \ |
| 28 |
pg_shmem.o |
| 29 |
|
| 30 |
ifeq ($(PORTNAME), win32) |
| 31 |
SUBDIRS += win32 |
| 32 |
endif |
| 33 |
|
| 34 |
include $(top_srcdir)/src/backend/common.mk |
| 35 |
|
| 36 |
tas.o: tas.s |
| 37 |
ifeq ($(SUN_STUDIO_CC), yes) |
| 38 |
# preprocess assembler file with cpp |
| 39 |
$(CC) $(CFLAGS) -c -P $< |
| 40 |
mv $*.i $*_cpp.s |
| 41 |
$(CC) $(CFLAGS) -c $*_cpp.s -o $@ |
| 42 |
else |
| 43 |
$(CC) $(CFLAGS) -c $< |
| 44 |
endif |
| 45 |
|
| 46 |
clean: |
| 47 |
rm -f tas_cpp.s |
| 48 |
$(MAKE) -C win32 clean |