| 7 |
|
WINDRES := windres |
| 8 |
|
endif |
| 9 |
|
|
| 10 |
< |
GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -pedantic -Wextra -Wno-unused-variable |
| 10 |
> |
GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter |
| 11 |
|
LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll |
| 12 |
|
LOCALE = LC_MESSAGES=C |
| 13 |
|
|
| 20 |
|
DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC))) |
| 21 |
|
|
| 22 |
|
ALL: $(DEST) $(OBJS) |
| 23 |
< |
echo "Linking $<" |
| 23 |
> |
@echo "Linking $<" |
| 24 |
|
$(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS) |
| 25 |
|
|
| 26 |
|
clean: |
| 28 |
|
rm $(OUT) |
| 29 |
|
|
| 30 |
|
build/%.o: src/%.c |
| 31 |
< |
echo "Compiling $<" |
| 31 |
> |
@echo "Compiling $<" |
| 32 |
|
$(LOCALE) $(GCC) $(GCCFLAGS) -c -o $@ $< |
| 33 |
< |
echo |
| 33 |
> |
@echo |
| 34 |
|
|
| 35 |
|
build/%.o: src/%.rc |
| 36 |
< |
echo "Assembling resource $<" |
| 36 |
> |
@echo "Assembling resource $<" |
| 37 |
|
$(WINDRES) -i $< -o $@ |
| 38 |
< |
echo |
| 38 |
> |
@echo |
| 39 |
|
|