OSDN Git Service

client 0.5.1 release
[unagi/old-svn-converted.git] / client / tag / 0.5.1 / Makefile
diff --git a/client/tag/0.5.1/Makefile b/client/tag/0.5.1/Makefile
new file mode 100644 (file)
index 0000000..190c2e6
--- /dev/null
@@ -0,0 +1,31 @@
+OBJ = \
+       unagi.o script.o header.o crc32.o \
+       driver_master.o driver_onajimi.o driver_hongkongfc.o \
+       file.o textutil.o giveio.o unagi.res.o
+OBJ_HK = giveio.o driver_hongkongfc.o
+TARGET = unagi.exe
+ifneq ($(RELEASE),1)
+       CFLAGS = -O0 -Wall -g -DDEBUG=1
+else
+       CFLAGS = -O2 -Wall -DDEBUG=0
+endif
+
+all: $(TARGET) unagi.d
+unagi.d:
+       gcc -MM *.c > $@
+hk.exe: $(OBJ_HK)
+       gcc -o $@ $(OBJ_HK)
+iodel.exe: iodel.o giveio.o
+       gcc -o $@ iodel.o giveio.o
+clean: 
+       rm -f $(OBJ) $(TARGET) unagi.d
+$(TARGET): $(OBJ)
+       gcc -o $@ $(OBJ)
+ifeq ($(RELEASE),1)
+       strip $@
+endif
+unagi.res.o: unagi.rc unagi.ico
+       windres -i $< -o $@
+
+#---- depend file ----
+-include unagi.d