Rev 9702 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9702 | turbocat | 1 | CC = i686-w64-mingw32-gcc |
7980 | dunkaist | 2 | |
9702 | turbocat | 3 | CPPFLAGS = -m32 -fpack-struct=2 -fno-exceptions -std=c++03 -Wno-write-strings -D_WIN32_ -DO_BINARY=0 |
4 | LDFLAGS = -m32 |
||
5 | |||
7980 | dunkaist | 6 | OBJS=$(patsubst %.cpp, %.o, $(wildcard *.cpp)) |
7 | |||
9702 | turbocat | 8 | TARGET = c--.exe |
7980 | dunkaist | 9 | |
9702 | turbocat | 10 | $(TARGET): $(OBJS) |
11 | $(CC) $(LDFLAGS) $^ -o $@ |
||
12 | |||
7980 | dunkaist | 13 | %.o: %.cpp |
9702 | turbocat | 14 | $(CC) $(CPPFLAGS) -c $< |
15 | |||
16 | clean: |
||
17 | rm -f $(OBJS) $(TARGET) |
||
9776 | turbocat | 18 | |
19 | install: $(TARGET) |
||
20 | cp c--.exe ../../cmm/c--/c--.exe |