]> git.pld-linux.org Git - packages/ash.git/blame - ash-make.patch
- release 21
[packages/ash.git] / ash-make.patch
CommitLineData
6d595dba
AF
1diff -Nur ash-linux-0.2/Makefile ash-linux-0.2.orig/Makefile
2--- ash-linux-0.2/Makefile Mon Oct 4 19:48:13 1993
3+++ ash-linux-0.2.orig/Makefile Tue Sep 29 09:48:30 1998
4@@ -1,5 +1,3 @@
5-# Makefile,v 1.7 1993/08/09 04:58:18 mycroft Exp
6-
7 PROG= sh
8 SRCS= builtins.c cd.c dirent.c bltin/echo.c error.c eval.c exec.c expand.c \
9 input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
10@@ -14,15 +12,15 @@
11
12 OBJS = $(OBJ1) $(OBJ2)
13
14-CFLAGS = -O2 -fomit-frame-pointer -m486 -DSHELL -I/usr/include/bsd -I.
15-LDFLAGS = -s -lbsd
16+CFLAGS = $(OPT_FLAGS) -DSHELL -I/usr/include -I. -D__BIT_TYPES_DEFINED__
17+LDFLAGS += -s
18
19 CLEANFILES =\
20 builtins.c builtins.h init.c mkinit mknodes mksyntax \
21 nodes.c nodes.h syntax.c syntax.h token.def
22
23 all: $(OBJS)
24- $(CC) -o $(PROG) $(OBJS) $(LDFLAGS)
25+ $(CC) $(STATIC) -o $(PROG) $(OBJS) $(LDFLAGS)
26
27 install: all
28 install sh /bin/ash
29@@ -32,7 +30,7 @@
30 token.def: mktokens
31 sh ./mktokens
32
33-builtins.h builtins.c: mkbuiltins builtins
34+builtins.h builtins.c: mkbuiltins
35 sh ./mkbuiltins
36
37 init.c: mkinit $(SRCS)
38@@ -56,4 +54,7 @@
39
40 clean:
41 rm -f core $(CLEANFILES) $(PROG) $(OBJS)
42+
43+.c.o:
44+ ${CC} ${CFLAGS} -o $@ -c $<
45
This page took 0.035463 seconds and 4 git commands to generate.