神奇好望角 The Magical Cape of Good Hope

          庸人不必自擾,智者何需千慮?
          posts - 26, comments - 50, trackbacks - 0, articles - 11
            BlogJava :: 首頁(yè) ::  :: 聯(lián)系 :: 聚合  :: 管理
          用 NetBeans 開(kāi)發(fā)一個(gè)簡(jiǎn)單的 Windows XP 程序 - 其三 Developing A simple Windows XP Application with NetBeans - Part 3
            新建一個(gè)名為 MyMakefile.mk 的 Makefile,內(nèi)容如下:     Create a new Makefile named MyMakefile.mk of the following content:
          1. PRJ=dist/Release/WinHello.exe
          2. OBJ=build/Release/WinHello.o build/Release/Resource.o
          3. CC=gcc
          4. CFLAGS=-mwindows -s
          5. RES=windres
          6. LIB=-lcomctl32
          7. $(PRJ): $(OBJ)
          8.     mkdir -p dist/Release
          9.     $(CC) $(CFLAGS) -o dist/Release/WinHello $(OBJ) $(LIB)
          10. build/Release/WinHello.o: WinHello.c
          11.     mkdir -p build/Release
          12.     $(CC) $(CFLAGS) -c -O4 -o build/Release/WinHello.o WinHello.c
          13. build/Release/Resource.o: Resource.rc
          14.     mkdir -p build/Release
          15.     $(RES) -o build/Release/Resource.o Resource.rc
          16. .PHONY: clean
          17. clean:
          18.     ${RM} $(OBJ) $(PRJ)
            注意由于排版問(wèn)題,制表符被擴(kuò)展成了空格。把這個(gè) Makefile 添加進(jìn)項(xiàng)目,在上面右鍵選擇“make”,就能得到如下的預(yù)期效果了:     Note that because of typesetting, tabs are expanded to spaces. Add this Makefile to the project, right click and select "make", and the following result is shown as expected:

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 通化县| 桐梓县| 格尔木市| 铜陵市| 宜君县| 县级市| 河源市| 台州市| 岱山县| 江都市| 江华| 广元市| 旌德县| 博客| 邓州市| 无极县| 阳山县| 达尔| 莱西市| 河东区| 普格县| 长岭县| 祁东县| 宁陕县| 共和县| 新巴尔虎右旗| 富川| 阿巴嘎旗| 池州市| 娄底市| 思南县| 浦县| 蒙山县| 余干县| 德州市| 北宁市| 普洱| 上蔡县| 葫芦岛市| 墨脱县| 宁明县|