Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexander Kahl
committed
Jun 7, 2009
0 parents
commit 3859aca
Showing
11 changed files
with
714 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
;; -*- mode: lisp -*- | ||
(asdf:oos 'asdf:load-op :evol) | ||
|
||
(defparameter *cc* "cc") | ||
(defparameter *objects* '("main.o" "program.o")) | ||
|
||
(defun do-objects () | ||
(mapc #'(lambda (pathname) | ||
(external-program:run *cc* (list "-c" "-o" pathname (evol:pathname-change-suffix "c" pathname)) | ||
:output *standard-output*)) | ||
*objects*)) | ||
|
||
(defun do-main () | ||
(do-objects) | ||
(external-program:run *cc* `(,@*objects* "-o" "main") | ||
:output *standard-output*)) | ||
|
||
(defun do-all () | ||
(do-main)) | ||
|
||
(defun do-clean () | ||
(external-program:run "rm" `("-f" ,@*objects* "main") | ||
:output *standard-output*)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CC = cc | ||
OBJECTS = main.o program.o | ||
|
||
all: main | ||
|
||
$(OBJECTS): | ||
cc ${CFLAGS} -c -o $@ $(@:.o=.c) | ||
|
||
main: $(OBJECTS) | ||
|
||
clean: | ||
rm -f $(OBJECTS) main |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
int | ||
main (int argc, char **argv) | ||
{ | ||
return 0; | ||
} |
Binary file not shown.
Empty file.
Binary file not shown.