File: makefile

package info (click to toggle)
dosemu-freedos 1%3A0.0.b9r5a%2Betch.1-0etch1
  • links: PTS
  • area: contrib
  • in suites: etch
  • size: 19,744 kB
  • ctags: 23,279
  • sloc: ansic: 143,864; asm: 20,397; makefile: 3,868; perl: 1,106; yacc: 690; sh: 553; pascal: 297; xml: 150; cpp: 67
file content (103 lines) | stat: -rw-r--r-- 3,738 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# FreeDOS Editor Makefile
# By Joe Cosentino and Jeremy Davis
#
# For use with Turbo C 2.01, Turbo C++ 1.01, Turbo C/C++ 3.0, and
# Borland C/C++ 3.1
#

all : edit.exe edit.hlp

#------------------------------------------------
# NOTE: Set DRIVE to match where you installed your compiler
#------------------------------------------------
DRIVE = c:\tc
#DRIVE = c:\tc201
#DRIVE = c:\tc101
#DRIVE = c:\tc30
#DRIVE = c:\borlandc

#-------------------------------------------------------------------
#  This macro builds the full Edit system with all options enabled.
#  Comment it out for a minimum system or selectively
#  comment out the #defines at the top of dflat.h.
#-------------------------------------------------------------------
FULL = BUILD_FULL_DFLAT
#-------------------------------------------------------------------

MODEL = l
#------------------------------------------------
# NOTE: Delete the DEBUG and LINKDEBUG macros to 
# build without debugging information in the .EXE
#------------------------------------------------
#DEBUG = -v -Od
#LINKDEBUG = /m /v
#------------------------------------------------
# NOTE: Temporary file space. Change to match
#       your computer. A RAM disk works best.
#------------------------------------------------
HEADERS=c:\temp\tcdef.sym
#------------------------------------------------
# Set to match your compiler
#------------------------------------------------
CC = tcc
#CC = bcc
LINKER = tlink
LIB = tlib

#------------------------------------------------
# Set any extra options here
#------------------------------------------------
# for TC2.01/TC++1.01 or other compilers, skip inline asm & use c alternate in video.c,
CCEXTRA = $(CCEXTRA) -DNOINLINEASM -DCVSYNC

# specify include directory
CCEXTRA = $(CCEXTRA) -I$(DRIVE)\include

# Calendar utility; you can disable (remove from menu) by defining NOCALENDAR
#   for TC2.01 you must either disable it or define NOSTRFTIME (TC2.01 also
#   only uses stubbed mktime, so time_t values are not normalized before display)
#CCEXTRA = $(CCEXTRA) -DNOCALENDAR
#CCEXTRA = $(CCEXTRA) -DNOSTRFTIME
#------------------------------------------------
COMPILE = $(CC) $(DEBUG) -D$(TESTING) -D$(FULL) -DBCPP -c -d -m$(MODEL) $(CCEXTRA)
LINK= $(LINKER) $(LINKDEBUG) $(DRIVE)\lib\c0$(MODEL)
LIBS= $(DRIVE)\lib\c$(MODEL)
#------------------------------------------------

.c.obj:
    $(COMPILE) $*.c

edit.exe : edit.obj dialogs.obj menus.obj dflat.lib
    $(LINK) edit dialogs menus,edit.exe,edit,dflat $(LIBS)

dflat.lib :   window.obj video.obj message.obj                         \
              mouse.obj console.obj textbox.obj listbox.obj            \
              normal.obj config.obj menu.obj menubar.obj popdown.obj   \
              rect.obj applicat.obj keys.obj sysmenu.obj editbox.obj   \
              dialbox.obj button.obj fileopen.obj msgbox.obj           \
              helpbox.obj log.obj lists.obj statbar.obj decomp.obj     \
              combobox.obj pictbox.obj clipbord.obj search.obj         \
              dfalloc.obj checkbox.obj text.obj radio.obj box.obj      \
              spinbutt.obj  watch.obj slidebox.obj direct.obj          \
              editor.obj calendar.obj
        del edit.lib
        $(LIB) dflat @dflat.bld

huffc.exe : huffc.obj htree.obj
    $(LINK) huffc htree,$*.exe,$*,$(LIBS)

fixhelp.exe : fixhelp.obj decomp.obj
    $(LINK) fixhelp decomp,$*.exe,$*,$(LIBS)

edit.hlp : edit.txt huffc.exe fixhelp.exe
    huffc edit.txt edit.hlp
    fixhelp edit

dist : all
    @del fixhelp.exe
    @del huffc.exe
    upx --8086 --best edit.exe

upx : all
    upx --8086 --best edit.exe