8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00
firebird-mirror/generated/burp/makefile
2002-02-26 13:48:58 +00:00

46 lines
890 B
Makefile

!IF "$(OS)" == "Windows_NT"
# NOTE - If you enter an absolute path to gpre.exe, it MUST use
# MS-DOS style backslash!
GPRE_PGM=..\..\bin\gpre
SED_PGM=sed
COMPILER_CFLAGS=-c -DNOMSG -DWIN32_LEAN_AND_MEAN -nologo
OBJEXT=obj
DELETE_COMMAND=del /q
!ELSE
!ERROR Running on unknown operating system.
!ENDIF
REL_SRC_DIR=../../src/burp
COMMON_CFLAGS=-I../../src -I../../src/include
CFLAGS=$(COMMON_CFLAGS) $(COMPILER_CFLAGS)
#
# CPP_FILES could be useful as build target in case we are only
# generate the C++ files into this dir
#
CPP_FILES=backup.cpp restore.cpp
OBJ_FILES=backup.$(OBJEXT) restore.$(OBJEXT)
# all: $(OBJ_FILES)
all: $(CPP_FILES)
cpp_files : $(CPP_FILES)
clean :
-$(DELETE_COMMAND) *.$(OBJEXT)
-$(DELETE_COMMAND) *.cpp
backup.cpp : $(REL_SRC_DIR)/backup.epp
$(GPRE_PGM) -r -m -n $? -o >$@
restore.cpp : $(REL_SRC_DIR)/restore.epp
$(GPRE_PGM) -r -m -n $? -o >$@