| Line |  | 
|---|
| 1 | # $Id: makefile,v 1.2 1999-09-05 02:30:45 bird Exp $ | 
|---|
| 2 |  | 
|---|
| 3 | # | 
|---|
| 4 | # PD-Win32 API | 
|---|
| 5 | # | 
|---|
| 6 | #       Tools common parts | 
|---|
| 7 | # | 
|---|
| 8 | #       Usage: nmake ( all | clean ) | 
|---|
| 9 | # | 
|---|
| 10 | #            all: Build the entire src. | 
|---|
| 11 | #            clean: Back to a "virgin" state. | 
|---|
| 12 | #            needed: Builds the tools used during compilation of the src tree. | 
|---|
| 13 | #            commonicc.lib: Build the IBM VA for C++ version of the library. | 
|---|
| 14 | #            commongcc.a:   Build the gcc version of the library - aout | 
|---|
| 15 | #            commongcc.lib: Build the gcc version of the library - OMF. | 
|---|
| 16 | # | 
|---|
| 17 | # | 
|---|
| 18 | !ifdef DEBUG | 
|---|
| 19 | MAKE_CMD = nmake -nologo DEBUG=1 | 
|---|
| 20 | !else | 
|---|
| 21 | MAKE_CMD = nmake -nologo | 
|---|
| 22 | !endif | 
|---|
| 23 |  | 
|---|
| 24 | all:    commonicc.lib commongcc.a commongcc.lib | 
|---|
| 25 |  | 
|---|
| 26 |  | 
|---|
| 27 | needed: commonicc.lib | 
|---|
| 28 |  | 
|---|
| 29 |  | 
|---|
| 30 | commonicc.lib: dummy | 
|---|
| 31 | -@echo $@ | 
|---|
| 32 | @$(MAKE_CMD) -f makefile.icc | 
|---|
| 33 |  | 
|---|
| 34 | commongcc.a: dummy | 
|---|
| 35 | -@echo $@ | 
|---|
| 36 | @$(MAKE_CMD) OMF=0 -f makefile.gcc | 
|---|
| 37 |  | 
|---|
| 38 | commongcc.lib: dummy | 
|---|
| 39 | -@echo $@ | 
|---|
| 40 | @$(MAKE_CMD) OMF=1 -f makefile.gcc | 
|---|
| 41 |  | 
|---|
| 42 | #a simple hack to make nmake process the target. | 
|---|
| 43 | dummy: | 
|---|
| 44 | -@echo ... | 
|---|
| 45 |  | 
|---|
| 46 | clean: | 
|---|
| 47 | @$(MAKE_CMD) -f makefile.icc clean | 
|---|
| 48 | @$(MAKE_CMD) OMF=0 -f makefile.gcc clean | 
|---|
| 49 | @$(MAKE_CMD) OMF=1 -f makefile.gcc clean | 
|---|
| 50 |  | 
|---|
| 51 |  | 
|---|
| 52 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.