Created
June 9, 2017 12:19
-
-
Save Langerz82/a61b759dc494f7f40c10404dba1c6d45 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # time Makefile | |
| # | |
| CC = x86_64-w64-mingw32-gcc.exe | |
| AR = x86_64-w64-mingw32-gcc-ar.exe | |
| CFLAGS = -O2 -fPIC -Wall -ansi -pedantic -std=c99 -ltime | |
| INCLUDE = -I"D:\\Program Files\\mingw-w64\\x86_64-4.9.1-release-posix-sjlj\\mingw64\\x86_64-w64-mingw32\\include" | |
| SHLD = ${CC} ${CFLAGS} $(INCLUDE) | |
| LDSHFLAGS = | |
| LDFLAGS = -L"D:\\Program Files\\mingw-w64\\x86_64-4.9.1-release-posix-sjlj\\mingw64\\x86_64-w64-mingw32\\lib" | |
| RM = cmd /c del /f | |
| COMPILE.c=$(CC) $(CFLAGS) $(INCLUDE) $(LDFLAGS) -c | |
| .c.o: | |
| $(COMPILE.c) -o $@ $< | |
| SRCS = time64.c | |
| OBJS = $(SRCS:.c=.o) | |
| default: libtime64.a | |
| libtime64.a: $(OBJS) | |
| $(AR) -rv libtime64.a $(OBJS) | |
| clean: | |
| $(RM) $(OBJS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment