Skip to content

Instantly share code, notes, and snippets.

@Langerz82
Created June 9, 2017 12:19
Show Gist options
  • Select an option

  • Save Langerz82/a61b759dc494f7f40c10404dba1c6d45 to your computer and use it in GitHub Desktop.

Select an option

Save Langerz82/a61b759dc494f7f40c10404dba1c6d45 to your computer and use it in GitHub Desktop.
#
# 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