summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2007-07-06 16:26:27 +0000
committerpixel <pixel>2007-07-06 16:26:27 +0000
commit1843b364cb6b364f13d40296f65bcd7b25d3f6e8 (patch)
treed63d59dad31148450382db5c8a50af0128c5328f
parent36fd1a3846fcb08abdf5dafcd6703586b51e369e (diff)
Adding test-it to makefile, and fixing 64-bits offsets.
-rw-r--r--Makefile7
-rw-r--r--test-it.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8c720b8..71f248d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
CC = gcc
+LD = gcc
AR = ar rcs
-CPPFLAGS = -g -Wall -Werror
+CPPFLAGS = -g -Wall -Werror -D_FILE_OFFSET_BITS=64
+LDFLAGS = -g -lssl
SOURCE_LIST = \
MPQCryptography.c \
@@ -23,6 +25,9 @@ all: dep $(TARGET)
$(TARGET): $(OBJ_LIST)
$(AR) $@ $(OBJ_LIST)
+test-it: $(TARGET) test-it.o
+ $(LD) -o test-it test-it.o $(TARGET) $(LDFLAGS)
+
clean:
rm -f *.o *.dep $(TARGET)
diff --git a/test-it.c b/test-it.c
index 0d13e87..b6331d9 100644
--- a/test-it.c
+++ b/test-it.c
@@ -22,4 +22,6 @@ int main(int argc, char ** argv) {
mpqlib_printtables(t1);
mpqlib_close_archive(t1);
+
+ return 0;
}