| 1 |
# .COPYRIGHT: Copyright (c) 1988 European Southern Observatory, |
| 2 |
# all rights reserved |
| 3 |
# .TYPE make file |
| 4 |
# .NAME $MIDASHOME/$MIDVERS/libsrc/os/unix/makefile |
| 5 |
# .LANGUAGE makefile syntax |
| 6 |
# .ENVIRONMENT Unix Systems. |
| 7 |
# .COMMENT Compiles source files and generates "libos.a" library. |
| 8 |
# |
| 9 |
# .REMARKS |
| 10 |
# .AUTHOR Carlos Guirao |
| 11 |
# .VERSION 1.1 880831: Implementation |
| 12 |
# .VERSION 2.1 901203: New directory structure. CG |
| 13 |
# .VERSION 2.2 920521: Removing MLIB CG |
| 14 |
# .VERSION 2.3 920716: osm.c is common to bsd & sysv. CG. |
| 15 |
# .VERSION 2.4 920904: Adding SHSYS for share libraries. CG. |
| 16 |
# .VERSION 3.0 930308: Using default.mk file |
| 17 |
# .VERSION 3.1 940211 Adding a generic tape driver. CG. |
| 18 |
# 061116 last modif |
| 19 |
|
| 20 |
include ../../../local/default.mk |
| 21 |
|
| 22 |
CFLAGS += $(C_OPT) $(DEBUG) $(MEM_OPT) $(SH_OPT) $(OSSYS) $(SYS) -I$(INC) |
| 23 |
|
| 24 |
LIB = $(LIBDIR)/libos.a |
| 25 |
|
| 26 |
OBJ = oss.o osh.o osa.o osd.o osf.o osp.o ospuwait.o osx.o osu.o \ |
| 27 |
osl.o osc.o ost.o osmessage.o oserror.o winsize.o\ |
| 28 |
osmemory.o oshenv.o osfdate.o osfparse.o osstr.o \ |
| 29 |
ospsystem.o iodevg.o iodev.o |
| 30 |
|
| 31 |
SRC = oss.c osh.c osa.c osd.c osf.c osp.c ospuwait.o osx.c osu.c \ |
| 32 |
osl.c osc.c ost.c osmessage.c oserror.c winsize.c\ |
| 33 |
osmemory.c oshenv.c osfdate.c osfparse.c osstr.c \ |
| 34 |
ospsystem.c iodevg.c iodev.c |
| 35 |
|
| 36 |
OUT = testos.exe |
| 37 |
|
| 38 |
# DEPENDENCIES: |
| 39 |
|
| 40 |
|
| 41 |
all: $(LIB) |
| 42 |
|
| 43 |
# testos.exe only for checking the linking process, in cannot be executed... |
| 44 |
|
| 45 |
testos.exe: testos.o $(LIB) |
| 46 |
$(LDCC) testos.o $(LIB) $(MLIB) $(SLIB) -o $@ |
| 47 |
$(STRIP) $@ |
| 48 |
|
| 49 |
$(LIB): $(OBJ) |
| 50 |
$(AR) $(AR_OPT) $(LIB) $(OBJ) |
| 51 |
$(RANLIB) $(LIB) |
| 52 |
|
| 53 |
osa.o: $(INC)/osparms.h |
| 54 |
osd.o: $(INC)/osparms.h |
| 55 |
osf.o: $(INC)/osparms.h |
| 56 |
osx.o: $(INC)/osparms.h |
| 57 |
osh.o: $(INC)/osparms.h |
| 58 |
osp.o: $(INC)/osparms.h |
| 59 |
osu.o: $(INC)/osparms.h $(INC)/osudef.h |
| 60 |
oss.o: $(INC)/osparms.h |
| 61 |
|
| 62 |
clean: |
| 63 |
rm -f $(OBJ) testos.o |
| 64 |
|
| 65 |
clean_exec: |
| 66 |
rm -f $(OUT) |
| 67 |
|
| 68 |
|
| 69 |
lint: |
| 70 |
lplus -g -I$(INC) $(SRC) |