Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions elkscmd/fsck_dos/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
fsck-dos
fsck-dos.os2
7 changes: 6 additions & 1 deletion elkscmd/fsck_dos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ LOCALCFLAGS += -Wno-shift-count-overflow
###############################################################################

PRGS = fsck-dos
ifdef WATCOM
PRGS += fsck-dos.os2
endif

all: $(PRGS)

Expand All @@ -37,7 +40,9 @@ fsck-dos: main.o boot.o check.o dir.o fat.o

fsck-dos.os2:
ewcc -Dlint=1 -DELKS=1 boot.c check.c dir.c fat.c main.c mem.c
ewlink -o fsck-dos.os2 boot.obj check.obj dir.obj fat.obj main.obj mem.obj
ewlink -o $@ boot.obj check.obj dir.obj fat.obj main.obj mem.obj
cp $@ $(TOPDIR)/elkscmd/rootfs_template/bin

clean:
$(RM) *.o $(PRGS) *.obj *.os2
$(RM) $(TOPDIR)/elkscmd/rootfs_template/bin/fsck-dos.os2
4 changes: 2 additions & 2 deletions elkscmd/gui/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
paint
opaint
cpaint
paint.os2
paint.c86
*.oaj
*.obj
*.ocj
4 changes: 0 additions & 4 deletions elkscmd/gui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,5 @@ c86:

clean:
make -f Makefile.gcc clean
ifdef WATCOM
make -f Makefile.owc clean
endif
ifdef C86
make -f Makefile.c86 clean
endif
13 changes: 7 additions & 6 deletions elkscmd/gui/Makefile.c86
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ ifndef TOPDIR
$(error ELKS TOPDIR is not defined)
endif

ifndef C86
$(error C86 is not defined)
endif
#ifndef C86
#$(error C86 is not defined)
#endif

CPP=cpp86
CC=c86
Expand Down Expand Up @@ -49,7 +49,7 @@ DEFINES +=
LOCALFLAGS =

BINDIR = .
PROG = $(BINDIR)/cpaint
PROG = $(BINDIR)/paint.c86
SRCS = app.c gui.c input.c render.c event.c mouse.c graphics.c drawbmp.c cursor.c \
drawscanline.c
OBJS += vga-c86.o8j
Expand All @@ -58,7 +58,8 @@ all: $(PROG)

$(PROG): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
cp $(PROG) $(TOPDIR)/elkscmd/rootfs_template/bin
cp $@ $(TOPDIR)/elkscmd/rootfs_template/bin

clean:
rm -f $(PROG) *.o8j *.as *.i *.lst
$(RM) $(PROG) *.o8j *.as *.i *.lst
$(RM) $(TOPDIR)/elkscmd/rootfs_template/bin/$(PROG)
2 changes: 1 addition & 1 deletion elkscmd/gui/Makefile.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ vga-ia16.oaj: vga-ia16.o
mv vga-ia16.o vga-ia16.oaj

clean:
rm -f $(PROG) *.oaj
$(RM) $(PROG) *.oaj
13 changes: 7 additions & 6 deletions elkscmd/gui/Makefile.owc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ ifndef TOPDIR
$(error ELKS TOPDIR is not defined)
endif

ifndef WATCOM
$(error OpenWatcom WATCOM is not defined)
endif
#ifndef WATCOM
#$(error OpenWatcom WATCOM is not defined)
#endif

CC = owcc
LD = owcc
Expand Down Expand Up @@ -38,15 +38,16 @@ OBJS = $(SRCS:.c=.obj)

BINDIR = .
LOCALFLAGS =
PROG = $(BINDIR)/opaint
PROG = $(BINDIR)/paint.os2
SRCS = app.c gui.c input.c render.c event.c mouse.c graphics.c drawbmp.c cursor.c
SRCS += drawscanline.c

all: $(PROG)

$(PROG): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
cp $(PROG) $(TOPDIR)/elkscmd/rootfs_template/bin
cp $@ $(TOPDIR)/elkscmd/rootfs_template/bin

clean:
rm -f $(PROG) *.obj
$(RM) $(PROG) *.obj
$(RM) $(TOPDIR)/elkscmd/rootfs_template/bin/$(PROG)