home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-07-19 | 904 b | 40 lines |
- # On U**X systems, compile with:
- # % cc -c -DU__X -O file.c
- #
- # On VMS system, compile with:
- # $ cc/define=VMS file.c
- # also.... rename y.tab.h to y_tab.h
- #
- # On OS/2 system, compile with:
- # [C:\] cl -c -DOS2 file.c
- # also.... rename y.tab.h to ytab.h
- #
-
- LIBS = /link /exepack
- CFLAGS = -Lp -AL
- DEFS = -DOS2
- OBJS = sc.obj lex.obj gram.obj interp.obj cmds.obj curs.obj
- INCL = experres.h sc.h statres.h ytab.h
- DOCS = README sc.man
-
- sc.exe : $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) $(LIBS)
-
- lex.obj: lex.c $(INCL)
- $(CC) $(CFLAGS) -c $(DEFS) $*.c
-
- interp.obj : interp.c $(INCL)
- $(CC) $(CFLAGS) -c $(DEFS) $*.c
-
- sc.obj : sc.c $(INCL) curs.h
- $(CC) $(CFLAGS) -c $(DEFS) $*.c
-
- cmds.obj : cmds.c $(INCL) curs.h
- $(CC) $(CFLAGS) -c $(DEFS) $*.c
-
- curs.obj : curs.c $(INCL) curs.h
- $(CC) $(CFLAGS) -c $(DEFS) $*.c
-
- gram.obj : gram.c $(INCL)
- $(CC) $(CFLAGS) -c -W0 $*.c
-