2022-02-08 17:16:25 +00:00
|
|
|
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
|
2020-05-24 22:34:13 +00:00
|
|
|
|
|
|
|
OBJS=$(patsubst %.cpp, %.o, $(wildcard *.cpp))
|
|
|
|
|
2022-02-08 17:16:25 +00:00
|
|
|
TARGET = c--.exe
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
$(CC) $(LDFLAGS) $^ -o $@
|
2020-05-24 22:34:13 +00:00
|
|
|
|
|
|
|
%.o: %.cpp
|
2022-02-08 17:16:25 +00:00
|
|
|
$(CC) $(CPPFLAGS) -c $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(TARGET)
|
2022-04-21 20:05:08 +00:00
|
|
|
|
|
|
|
install: $(TARGET)
|
|
|
|
cp c--.exe ../../cmm/c--/c--.exe
|