mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-06 08:57:02 +02:00
26 lines
342 B
Makefile
26 lines
342 B
Makefile
|
|
||
|
PROGRAM = rand_datetime
|
||
|
|
||
|
OBJECTS = rand_datetime.o
|
||
|
|
||
|
CFLAGS = -Wall -fpic -O3
|
||
|
CC = gcc
|
||
|
RM = rm -f
|
||
|
LIBS =
|
||
|
INCLUDE =
|
||
|
|
||
|
COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDE)
|
||
|
LINK = $(CC) $(CFLAGS) -o $@ $(LIBS)
|
||
|
|
||
|
|
||
|
all: $(PROGRAM)
|
||
|
|
||
|
$(PROGRAM): $(OBJECTS)
|
||
|
$(LINK) $(OBJECTS)
|
||
|
|
||
|
.c.o: $<
|
||
|
$(COMPILE) -c $<
|
||
|
|
||
|
clean:
|
||
|
$(RM) -f *~ $(OBJECTS) $(PROGRAM)
|