Fix a compiler warning in initStringInfo().
[pgsql.git] / src / backend / port / Makefile
blob47338d99229576bf5cd12ec615ca59470d845120
1 #-------------------------------------------------------------------------
3 # Makefile--
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.
15 # IDENTIFICATION
16 # src/backend/port/Makefile
18 #-------------------------------------------------------------------------
20 subdir = src/backend/port
21 top_builddir = ../../..
22 include $(top_builddir)/src/Makefile.global
24 OBJS = \
25 $(TAS) \
26 atomics.o \
27 pg_sema.o \
28 pg_shmem.o
30 ifeq ($(PORTNAME), win32)
31 SUBDIRS += win32
32 endif
34 include $(top_srcdir)/src/backend/common.mk
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
46 clean:
47 rm -f tas_cpp.s
48 $(MAKE) -C win32 clean