kolibrios/programs/develop/cmm/Makefile.win32

20 lines
399 B
Makefile
Raw Normal View History

CC = i686-w64-mingw32-gcc
CPPFLAGS = -m32 -fpack-struct=2 -fno-exceptions -std=c++03 -Wno-write-strings -D_WIN32_ -DO_BINARY=0
LDFLAGS = -m32
OBJS=$(patsubst %.cpp, %.o, $(wildcard *.cpp))
TARGET = c--.exe
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) $^ -o $@
%.o: %.cpp
$(CC) $(CPPFLAGS) -c $<
clean:
rm -f $(OBJS) $(TARGET)
install: $(TARGET)
cp c--.exe ../../cmm/c--/c--.exe