OBJS=add-cygwin-default-manifest.o cygwin-default-manifest.o all: add-cygwin-default-manifest.exe cygwin-default-manifest.o: cygwin-default-manifest.rc windres -o $@ $< add-cygwin-default-manifest.exe: $(OBJS) gcc $(CFLAGS) -o $@ $(OBJS) doit: objcopy --remove-section=.gnu_debuglink $(EXE) $(EXE).out \ && ./add-cygwin-default-manifest $(EXE).out \ && strip $(EXE).out \ && mv $(EXE).out $(EXE)