Skip to content

Instantly share code, notes, and snippets.

@zhaozg
Created January 28, 2015 09:24
Show Gist options
  • Save zhaozg/cefc051318ff01936ebc to your computer and use it in GitHub Desktop.
Save zhaozg/cefc051318ff01936ebc to your computer and use it in GitHub Desktop.
build gnu ident with mingw on windows
#
# Simple makefile to make indent on win32 systems.
# Requires:
# - gcc (mingw32)
# - Unixlike make (preferably gmake)
#
# Sudhi Herle (sherle@sta.samsung.com)
#
default: all
OBJS = \
args.o \
backup.o \
comments.o \
globs.o \
indent.o \
code_io.o \
lexi.o \
parse.o \
wildexp.o \
utils.o \
output.o
CC = gcc
DEFS = -DWIN32 -D_CONSOLE -DHAVE_CONFIG_H
CFLAGS = -s -O6 $(DEFS) -I.
all: indent.exe
indent.exe: $(OBJS)
$(CC) -o $@ $(OBJS)
$(OBJS): config.h
config.h: config.h.vc++
cp $< $@
clean:
-del *.o indent.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment