aboutsummaryrefslogtreecommitdiff
path: root/tools/create_kyradat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/create_kyradat/Makefile')
-rw-r--r--tools/create_kyradat/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/create_kyradat/Makefile b/tools/create_kyradat/Makefile
new file mode 100644
index 0000000000..b90f8940b7
--- /dev/null
+++ b/tools/create_kyradat/Makefile
@@ -0,0 +1,29 @@
+CXX ?= g++
+CC ?= gcc
+
+LDFLAGS ?=
+CXXFLAGS ?= -O2
+CFLAGS ?= -O2
+CPPFLAGS ?=
+
+BIN=create_kyradat
+
+OBJS=create_kyradat.o pak.o md5.o util.o
+
+all: $(BIN)
+
+$(BIN): $(OBJS)
+ $(CXX) $(OBJS) $(LDFLAGS) -o $(BIN)
+
+clean:
+ rm -f $(BIN)
+ rm -f $(OBJS)
+
+create_kyradat.o: eng.h esp.h fre.h ger.h misc.h pak.h util.h md5.h
+pak.o: pak.h util.h
+
+%.o: %.cpp
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
+
+%.o: %.c
+ $(CXX) $(CPPFLAGS) $(CFLAGS) -c $< -o $@